{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Conversation.get_prompt (cyclomatic 91): Conversation.get_prompt has cyclomatic complexity 91 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9485e957800321412081b6b4da6c817d73ae9800a573f96e3702eb8beb8d2ef5"}},{"ruleId":"D1","level":"warning","message":{"text":"inference.generate_stream (cyclomatic 47): inference.generate_stream has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9162f917ab19204609ec908d1b4909ae7c437895a8e835495b43612df617df1"}},{"ruleId":"D1","level":"warning","message":{"text":"train_yuan2.preprocess (cyclomatic 43): train_yuan2.preprocess has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_yuan2.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c0f0c462f0a0d26a92ff5b0419de633f5eee00d0a6ff391e74e2af9e14ca9c"}},{"ruleId":"D1","level":"warning","message":{"text":"clean_battle_data.process_data (cyclomatic 38): clean_battle_data.process_data has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/clean_battle_data.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4fdecaefa0e14239583ea05c91beeeb5ef6f70b31de57433b2ce6c6ce23e73"}},{"ruleId":"D1","level":"warning","message":{"text":"model_adapter.load_model (cyclomatic 37): model_adapter.load_model has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6db8bd3bcd29a543194be529bcdb3f25847bc9e82b6bca0b0516689ce18766"}},{"ruleId":"D1","level":"warning","message":{"text":"api_provider.get_api_provider_stream_iter (cyclomatic 31): api_provider.get_api_provider_stream_iter has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d20d7aa160cd882224e33f16e24048701803384260f1474868c511c92ca1736"}},{"ruleId":"D1","level":"warning","message":{"text":"inference.chat_loop (cyclomatic 31): inference.chat_loop has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a583ea6a83dbe4cf9846b22ac42154135565cc576bb91fb6fdb7d0dc9512ca"}},{"ruleId":"D1","level":"warning","message":{"text":"train_lora.train (cyclomatic 26): train_lora.train has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e4eb5bb303a79ce8b67dfe0244e704a6fabf2b5b3fa46bd58be8faf0843348"}},{"ruleId":"D1","level":"warning","message":{"text":"api_provider.openai_assistant_api_stream_iter (cyclomatic 23): api_provider.openai_assistant_api_stream_iter has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bb00a5622e9736293b1ee33cd80eaf8b3cc82097b288032e09c0e8d7037135"}},{"ruleId":"D1","level":"warning","message":{"text":"gen_model_answer.get_model_answers (cyclomatic 22): gen_model_answer.get_model_answers has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_model_answer.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1f3cb6036b1ced04d2f30b4f246135c75d81906d9bba5834ad5569204bcef7"}},{"ruleId":"D1","level":"warning","message":{"text":"DashInferWorker.generate_stream (cyclomatic 22): DashInferWorker.generate_stream has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/dashinfer_worker.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8378020813391e81029779f7641d769bdf93c77d1f7373d8d14ba9413b4bc8de"}},{"ruleId":"D1","level":"warning","message":{"text":"LightLLMWorker.generate_stream (cyclomatic 22): LightLLMWorker.generate_stream has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"916c0a87a3f266412b9c75e9140dbdf23c8d80a9b8fe3ac502c624be4cb70c88"}},{"ruleId":"D1","level":"warning","message":{"text":"compression.load_compress_model (cyclomatic 20): compression.load_compress_model has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/compression.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf37271b340005fd604541e8e35e75c9b69655909d81a3e2ed142f61325e8242"}},{"ruleId":"D1","level":"warning","message":{"text":"VLLMWorker.generate_stream (cyclomatic 20): VLLMWorker.generate_stream has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/vllm_worker.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1e4aa7ec173748264b62b6ba62638fd27d9cbf5de2c0365f63e63cb8b9c40f"}},{"ruleId":"D1","level":"warning","message":{"text":"gradio_block_arena_vision_named.add_text (cyclomatic 19): gradio_block_arena_vision_named.add_text has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_named.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8ea68cb09a7b2ab7f69faee97cc30dbfb962518826d2d38481997de2eb33fd"}},{"ruleId":"D1","level":"warning","message":{"text":"gradio_web_server.bot_response (cyclomatic 19): gradio_web_server.bot_response has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed3acf68fc69a12e251b2cb1fcaf4866439e2a5a01c66d0c20f0cd4ef236a94"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_api_server.check_requests (cyclomatic 19): openai_api_server.check_requests has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"415cb7d763defc4102352f71305050decb6b08fda7f1a73bb4ac4996c5a98b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"train_lora_t5.train (cyclomatic 19): train_lora_t5.train has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora_t5.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6dbb1937a74b6bad271ff8401eb387b6b696c7f24a0cc212ad46564000096c"}},{"ruleId":"D1","level":"warning","message":{"text":"model_falcon.generate_stream_falcon (cyclomatic 18): model_falcon.generate_stream_falcon has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"51091a792f89895c1d40225bc269b318293f021bd242dbe5c030cc4644775384"}},{"ruleId":"D1","level":"warning","message":{"text":"model_yuan2.generate_stream_yuan2 (cyclomatic 18): model_yuan2.generate_stream_yuan2 has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_yuan2.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f1757e18ef77a0b0848397916e90320756d08affa25c7590de544424d7f46b"}},{"ruleId":"D1","level":"warning","message":{"text":"compute_agreement.get_mt_bench_agreement (cyclomatic 17): compute_agreement.get_mt_bench_agreement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/compute_agreement.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e049b50246008506e244d0f7ec6695d327d82278b953a78aa7af826c152beaaf"}},{"ruleId":"D1","level":"warning","message":{"text":"common.run_judge_pair (cyclomatic 16): common.run_judge_pair has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9b6ab9394a0a99fef35b2e085a22daf94201fba592c5e657fca4aa65d7f7bc"}},{"ruleId":"D1","level":"warning","message":{"text":"topic_clustering.read_texts (cyclomatic 16): topic_clustering.read_texts has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/topic_clustering.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"608dc540eec6528eebc6afcc0fa340ce763d9ccd18a13df522c35f738ebb45e7"}},{"ruleId":"D1","level":"warning","message":{"text":"SGLWorker.generate_stream (cyclomatic 16): SGLWorker.generate_stream has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/sglang_worker.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f68bb28ecd990a80ca6e27b0439109b02855e896a4298b24f5e42997f9fc71d"}},{"ruleId":"D2","level":"warning","message":{"text":"Conversation.get_prompt (cognitive 204): Conversation.get_prompt has cognitive complexity 204 (threshold 15). Drivers by points: if/else 67 (144 pts), loops 23 (46 pts), ternaries 6 (14 pts) (nesting depth added 108). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f797c57896ebd6b54336fe9a913d2deaab19d4b81ab561f557ff4f4563be218"}},{"ruleId":"D2","level":"warning","message":{"text":"inference.generate_stream (cognitive 138): inference.generate_stream has cognitive complexity 138 (threshold 15). Drivers by points: if/else 44 (92 pts), ternaries 7 (28 pts), loops 4 (14 pts), boolean chains 4 (nesting depth added 79). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7720a0ed7b74fd30d3a8f82dd0bab3b567736f04782906844258254d0f6db12e"}},{"ruleId":"D2","level":"warning","message":{"text":"train_yuan2.preprocess (cognitive 121): train_yuan2.preprocess has cognitive complexity 121 (threshold 15). Drivers by points: if/else 31 (92 pts), loops 10 (25 pts), boolean chains 4 (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_yuan2.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c849243ad7c5e5c6edddacfea9f27faf27dab7b94321c85fcc0341489bd7b269"}},{"ruleId":"D2","level":"warning","message":{"text":"clean_battle_data.process_data (cognitive 79): clean_battle_data.process_data has cognitive complexity 79 (threshold 15). Drivers by points: if/else 25 (55 pts), loops 8 (16 pts), boolean chains 8 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/clean_battle_data.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b4e89b373df80e6e354089c7b306182dbbf4d8884a758f30a5398409c3d521"}},{"ruleId":"D2","level":"warning","message":{"text":"gen_model_answer.get_model_answers (cognitive 74): gen_model_answer.get_model_answers has cognitive complexity 74 (threshold 15). Drivers by points: if/else 15 (51 pts), loops 5 (16 pts), error handling 1 (4 pts), boolean chains 3 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_model_answer.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dcdf1dcc73f60e46cc7fe83bb81544be7e8293457bb3de3ce98a21e64487c4"}},{"ruleId":"D2","level":"warning","message":{"text":"inference.chat_loop (cognitive 69): inference.chat_loop has cognitive complexity 69 (threshold 15). Drivers by points: if/else 24 (60 pts), boolean chains 4, error handling 2 (4 pts), loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f4f5bfb2c5a2e9f55aeeaef8756f52dc8e45987c73e39cdb449fa7bbdcc5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"api_provider.openai_assistant_api_stream_iter (cognitive 67): api_provider.openai_assistant_api_stream_iter has cognitive complexity 67 (threshold 15). Drivers by points: if/else 15 (49 pts), loops 4 (16 pts), boolean chains 2 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"992ff75ee15ae769b692b04935088c6fcc790b9887cf03e7e702e50e7d24f50c"}},{"ruleId":"D2","level":"warning","message":{"text":"model_falcon.generate_stream_falcon (cognitive 50): model_falcon.generate_stream_falcon has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (43 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"98735d4f46283aa2b45160750acf6e7dee8741321c7310edcad691558c9fe6ed"}},{"ruleId":"D2","level":"warning","message":{"text":"model_yuan2.generate_stream_yuan2 (cognitive 50): model_yuan2.generate_stream_yuan2 has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (43 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_yuan2.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2bb03a85ba01d5d993a925be34b519f75deee4851ae90c63484892a14f0f43"}},{"ruleId":"D2","level":"warning","message":{"text":"model_adapter.load_model (cognitive 49): model_adapter.load_model has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (35 pts), error handling 4 (9 pts), boolean chains 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"138c54961a9ddb76a5bfa4770fed8f2c1379ba0d666014ad6b061049c94039d5"}},{"ruleId":"D2","level":"warning","message":{"text":"train_lora.train (cognitive 39): train_lora.train has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 5, ternaries 4 (5 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dad9279068a930f0ad6cf48bf6526d87f3ba770132fb53f4b40168f8375d50b"}},{"ruleId":"D2","level":"warning","message":{"text":"compute_agreement.get_mt_bench_agreement (cognitive 38): compute_agreement.get_mt_bench_agreement has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 5 (14 pts), boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/compute_agreement.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a888f7f7e0eaadac6d44fec0adb5a37e3197f053c50acefc7e1d12b799db362"}},{"ruleId":"D2","level":"warning","message":{"text":"compression.load_compress_model (cognitive 37): compression.load_compress_model has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (31 pts), loops 3 (4 pts), error handling 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/compression.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab93d7462d2de6f25a17ee7fd0b40857fcdb65be82535cef62591ad61cf04c1"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.load_leaderboard_table_csv (cognitive 37): monitor.load_leaderboard_table_csv has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 3 (6 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/monitor.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef5ed03da7688074ddfb71968334fe5febd854768711b2d5558d2ddbc95d827"}},{"ruleId":"D2","level":"warning","message":{"text":"topic_clustering.read_texts (cognitive 35): topic_clustering.read_texts has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 2 (3 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/topic_clustering.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0096b8d4df97edf9758c266a60b15d2c5d81b8f3f6b7d3965587f035a305c0bc"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_web_server.bot_response (cognitive 34): gradio_web_server.bot_response has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (29 pts), error handling 2, boolean chains 1, loops 1, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa11ea4f0cc5ca69326951689655b5b07b9cad1bc25c52c4111c5cbfa495ddcb"}},{"ruleId":"D2","level":"warning","message":{"text":"LightLLMWorker.generate_stream (cognitive 33): LightLLMWorker.generate_stream has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3f5512bba1bd051913b433383116c54ca044c7766c5ee470c9b0ff0165f8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"filter_bad_conv.detect_type (cognitive 31): filter_bad_conv.detect_type has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 5 (9 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/arena_33k/filter_bad_conv.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9375ea10a2c222492ab829fd52e7fad52c5c26927bf92628369604befc265188"}},{"ruleId":"D2","level":"warning","message":{"text":"VLLMWorker.generate_stream (cognitive 30): VLLMWorker.generate_stream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (5 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/vllm_worker.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d78cae7fc1d9ecda843e0606157e06be52a72a8e6ce53602ab73cd690033a8"}},{"ruleId":"D2","level":"warning","message":{"text":"train.preprocess (cognitive 29): train.preprocess has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ef1fe20d823b1f9e1e9dc842662a61df1e6050d11fa7e2980904689d0a36f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.get_worker_address (cognitive 28): Controller.get_worker_address has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92520c923b9ea645a9958f953a2ec716335f088e601753138be20723acb05d8"}},{"ruleId":"D2","level":"warning","message":{"text":"DashInferWorker.generate_stream (cognitive 28): DashInferWorker.generate_stream has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (19 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/dashinfer_worker.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e046efccc22d95ad5e35f51a4de1e85c9c28ea258e39ff54ea171c0e3d94a6"}},{"ruleId":"D2","level":"warning","message":{"text":"api_provider.get_api_provider_stream_iter (cognitive 27): api_provider.get_api_provider_stream_iter has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"791b42f7f3f4bbd6760153f31b29635d9d7efb8f043b0b5ef811a0f4f3caac54"}},{"ruleId":"D2","level":"warning","message":{"text":"filter_bad_conv.detect_type (cognitive 27): filter_bad_conv.detect_type has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (8 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/filter_bad_conv.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"829b4d8c8b88622bf8968e527cbc1985cea8a7955d7d4a3446761b9761db31bd"}},{"ruleId":"D2","level":"warning","message":{"text":"api_provider.openai_api_stream_iter (cognitive 26): api_provider.openai_api_stream_iter has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1298ce79818984123cb16765ed57a3c9b886c98d9e49becf4a19265937991fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_api_server.get_gen_params (cognitive 26): openai_api_server.get_gen_params has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c9bcb26451eba914bcf9de72cfd8cab4bf65b5da4385883d95b148ad8ffe0e"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_api_server.create_completion (cognitive 25): openai_api_server.create_completion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (11 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"731fc523582b948b6a50a28d356c1ca332b22042f7cd1c539552497eaa505df0"}},{"ruleId":"D2","level":"warning","message":{"text":"train_with_template.mask_targets (cognitive 25): train_with_template.mask_targets has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_with_template.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbde4db8fa1865dd9a100094a5d7f61b1749fd7ef48f6a4d9259685e800f6a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Monitor.update_stats (cognitive 24): Monitor.update_stats has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 4 (8 pts), error handling 1 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/call_monitor.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba03a75690042bff710e71d83ba5242fd5c4bacf991467ca9c363586e87af940"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_block_arena_vision_named.add_text (cognitive 24): gradio_block_arena_vision_named.add_text has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 5 (8 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_named.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb9f02bfd614979c4213e923c7bb21c95d71bac6bbf922449ae9baa9712b46e"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelWorker.get_embeddings (cognitive 24): ModelWorker.get_embeddings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, error handling 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/model_worker.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"55328adf2f593cdd82ebe19bac2f3abacaf5a2eb4ec3e9f182cf7bd8225bb4f5"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_api_server.generate_completion_stream_generator (cognitive 24): openai_api_server.generate_completion_stream_generator has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (13 pts), loops 4 (7 pts), ternaries 1 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"7114f5a1e07538272946b3a554a00b9ab42dfd56c6deb7defec718277377e560"}},{"ruleId":"D2","level":"warning","message":{"text":"train_lora_t5.train (cognitive 24): train_lora_t5.train has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 4 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora_t5.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf577b6c20f8ed7d827cb285529a2dc44c1b2aaa8fc218b90af649cb7bac22f"}},{"ruleId":"D2","level":"warning","message":{"text":"common.run_judge_pair (cognitive 23): common.run_judge_pair has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (23 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1bfd128b468be2dbeaa7f44eae88b645def7fcc94333b65378ca7a0228c715"}},{"ruleId":"D2","level":"warning","message":{"text":"api_provider.p2l_api_stream_iter (cognitive 23): api_provider.p2l_api_stream_iter has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 2, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a92dfb753f61cb66996a364a6ef0ddcabdf5b434ce0e1efb4f74fbe31f4bcd7"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_block_arena_anony.get_battle_pair (cognitive 23): gradio_block_arena_anony.get_battle_pair has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7a3f466a00eede7157d5cffaf1c5abb57cb630a6677a582b9ddf8a0354d525"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.build_leaderboard_tab (cognitive 23): monitor.build_leaderboard_tab has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/monitor.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"664c9e018642388e9736d794c10e10df9790e259f172750218399589a11fd621"}},{"ruleId":"D2","level":"warning","message":{"text":"elo_analysis.outlier_detect (cognitive 22): elo_analysis.outlier_detect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/elo_analysis.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecbc3ca74e1b9414b8db698f4f165ae77c41fb5750b2b15c00c258388730049"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_web_server.get_model_list (cognitive 21): gradio_web_server.get_model_list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c597892fbcb09efadb23681b930a5b7c91a39adb6eddb3651fbdd25ba78953"}},{"ruleId":"D2","level":"warning","message":{"text":"inspect_conv.inspect_convs (cognitive 21): inspect_conv.inspect_convs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/inspect_conv.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd0516450d6f9b75025eb6d14adb7e067dd20773ca3e5ebac81cabeca51fc02"}},{"ruleId":"D2","level":"warning","message":{"text":"show_result.display_result_pairwise (cognitive 20): show_result.display_result_pairwise has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/show_result.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7b985219f428b14b808c1b3d64618851a84e0e9e7b5cbd5035d75b014b2819"}},{"ruleId":"D2","level":"warning","message":{"text":"model_cllm.get_jacobian_trajectory (cognitive 20): model_cllm.get_jacobian_trajectory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_cllm.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"139635f64a491b98b4066443dbdaa8aec35c7f4a854273445a0e57c86e33f6a2"}},{"ruleId":"D2","level":"warning","message":{"text":"elo_analysis.report_elo_analysis_results (cognitive 20): elo_analysis.report_elo_analysis_results has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/elo_analysis.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"26208ad2f597d7cc0fab4c822ed00a36ac20f99e117ab424c3e11d73466f6da2"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_api_server.chat_completion_stream_generator (cognitive 20): openai_api_server.chat_completion_stream_generator has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46dc3f7a607696dfcf0c0967b3f3d80d19218055695853c9dbf0ac6d30ec210"}},{"ruleId":"D2","level":"warning","message":{"text":"Conversation.to_openai_vision_api_messages (cognitive 19): Conversation.to_openai_vision_api_messages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e73e4be372fe3d98689b2b50d6c07cae593b56831b914ac10041582377dabe"}},{"ruleId":"D2","level":"warning","message":{"text":"clean_sharegpt.clean_html_one_sample (cognitive 19): clean_sharegpt.clean_html_one_sample has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/clean_sharegpt.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a8a45069e937a9a327fae0c429cc8280a6a85813c3ee460d02e433b61ce239"}},{"ruleId":"D2","level":"warning","message":{"text":"model_cllm.generate_stream_cllm (cognitive 19): model_cllm.generate_stream_cllm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_cllm.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34851a75005c4837144b92871e498f8ba1fb509ebc4b3b95150b55d91c12b41"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_block_arena_anony.bot_response_multi (cognitive 19): gradio_block_arena_anony.bot_response_multi has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (5 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b544451bf427e0e532193e0a2f3fc85ffd7b866d01a44472f132292cf5e247"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_block_arena_vision_anony.add_text (cognitive 19): gradio_block_arena_vision_anony.add_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 5 (8 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbeca508f50a693cbbba0ce9c949c4738d937353c0b32aa1c9598d6378adadb"}},{"ruleId":"D2","level":"warning","message":{"text":"HuggingfaceApiWorker.generate_stream_gate (cognitive 19): HuggingfaceApiWorker.generate_stream_gate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/huggingface_api_worker.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb003f3d533cb7b59fcd0a62fc44e072a0d0baf43be2b308d52ed8e16bf73a4"}},{"ruleId":"D2","level":"warning","message":{"text":"SGLWorker.generate_stream (cognitive 19): SGLWorker.generate_stream has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 3, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/sglang_worker.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d7f10989a4166ac64ad5c75c5823972e511d8fe71e8e18ab1d5fffbe5c6e61"}},{"ruleId":"D2","level":"warning","message":{"text":"Conversation.to_vertex_api_messages (cognitive 18): Conversation.to_vertex_api_messages has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47f1f6ff59de8c3a7fca58e2442c16dd32ceaffeb48ed24defbc32651249917"}},{"ruleId":"D2","level":"warning","message":{"text":"gradio_block_arena_named.bot_response_multi (cognitive 18): gradio_block_arena_named.bot_response_multi has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (5 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b7da55d822f13ea10f1ed1414be444a2d962ee202e8e3f6f7cf54ddedbf5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_api_server.check_requests (cognitive 18): openai_api_server.check_requests has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051210bae646a4bb50a7695f28e3cfd3c268454e5559ce6d2d810ac881eac8c"}},{"ruleId":"D2","level":"warning","message":{"text":"llama_xformers_attn_monkey_patch.xformers_forward (cognitive 18): llama_xformers_attn_monkey_patch.xformers_forward has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/llama_xformers_attn_monkey_patch.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd59637376b8b249f20049e0e4e5daabd1bef590279345a57296df1325d932b"}},{"ruleId":"D2","level":"warning","message":{"text":"api_provider.ai2_api_stream_iter (cognitive 17): api_provider.ai2_api_stream_iter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"083191fc2113e268f2ddae2276053f5803921f43fd8a09138290847d0d47364f"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXWorker.generate_stream (cognitive 17): MLXWorker.generate_stream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/mlx_worker.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3300e882bddd495612d5938047d6b704b24f1072a5dff1aaa484d46f969ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"train_lora.get_peft_state_maybe_zero_3 (cognitive 17): train_lora.get_peft_state_maybe_zero_3 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4315a0ad0bd0f61126916503553acd33499a6e5be55d1962283c79be665e5db"}},{"ruleId":"D2","level":"warning","message":{"text":"Conversation.to_reka_api_messages (cognitive 16): Conversation.to_reka_api_messages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"527b88b0bfccc81fe1c11a8cd1d30e4bea0ac9dcd2ee46dd2fd2ca36b1be0ae9"}},{"ruleId":"D2","level":"warning","message":{"text":"clean_sharegpt.clean_html_all (cognitive 16): clean_sharegpt.clean_html_all has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/clean_sharegpt.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"be632362733c0c3d110251d843fe051bef48c3abf22db6767f2ccddf007f3cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"apply_delta.apply_delta_low_cpu_mem (cognitive 16): apply_delta.apply_delta_low_cpu_mem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/apply_delta.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a86c7907c4121826d5c6bb3231a54827440f7f6b121a96c03e8c7010768493"}},{"ruleId":"D2","level":"warning","message":{"text":"Monitor.get_user_call_stats (cognitive 16): Monitor.get_user_call_stats has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/call_monitor.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d21fde43612f2bbe5c0c351399ed99c6eec004a74075cd5686272ad5bae105"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_api_server.create_chat_completion (cognitive 16): openai_api_server.create_chat_completion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (5 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf182bdd6659d7d538b17321e7c1857c2fd8e93e1365a6c7d0ba2c5a27d9ab63"}},{"ruleId":"D2","level":"warning","message":{"text":"train_baichuan.mask_targets (cognitive 16): train_baichuan.mask_targets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdcbead43b79c211039eb6e44be3431770dbd6905ab320bf0436f6596dfc5db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/model_adapter.py: FileTooLong \u2014 1734 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1234 over it, 3.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10a671456d50602a59e2681b940e69f485d5b7786c5eeb3fc1c33d6c0067596"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fastchat/conversation.py: FileTooLong \u2014 1542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1042 over it, 3.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2581406a41bfed60c604941d4417dc0ee05ffe0dc552baa64ce9d2af34fde790"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: serve/api_provider.py: FileTooLong \u2014 1057 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 557 over it, 2.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3e91a2f228a5331d8e88f97b17734c1c13952a0e56f649965f042c647e4022"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: serve/openai_api_server.py: FileTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 202 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cfa8b45cba25b99616c911689cb0884d04a1dc54d0f0eac5b8f9d5b137c73d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/model_registry.py: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"185daaa130b6803cee7b6bc7ca90801ca96d500e27783f50b409a94fbbf6f8bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm_judge/common.py: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaaa96403b240f660a30d672b2cfd9470d44091f0ae71e5c949fb6467dcb4d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 31 shared lines): fastchat/model/monkey_patch_non_inplace.py:40-114 | fastchat/train/llama_flash_attn_monkey_patch.py:22-85 | fastchat/train/llama_xformers_attn_monkey_patch.py:33-129 \u2014 These 3 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/monkey_patch_non_inplace.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce894d44cbb84b3932c4e2533e4b1f8e62ab1a850a32c922511a5902900c336e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): fastchat/train/train_lora.py:105-218 | fastchat/train/train_lora_t5.py:110-222 \u2014 These two members are variants of one another: 56 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"78400b0cdf3def2e75e72e9c8fa56f477af0e3247cdfc5f6fef4ec1cab90c05a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): fastchat/llm_judge/qa_browser.py:126-154 | fastchat/llm_judge/qa_browser.py:158-183 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"655b79638e04fec00d35ddde4eb0ba3b8aec35e6a750c458d2bd35579787de34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): fastchat/serve/monitor/classify/label.py:46-89 | fastchat/serve/monitor/criteria_labeling.py:71-113 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/label.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffe472490184972fdd2d6575bb4fb9d87bc1f30671a2e13832f92cb77659273"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): fastchat/train/train_baichuan.py:152-177 | fastchat/train/train_with_template.py:201-226 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2ebf6010f8b26c5f2e904b015d188d316d6c2b17ef179d99b8c4960e5ad432"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): fastchat/serve/monitor/classify/category.py:133-140 | fastchat/serve/monitor/classify/category.py:205-212 | fastchat/serve/monitor/classify/category.py:274-281 | fastchat/serve/monitor/classify/category.py:318-325 | fastchat/serve/monitor/classify/category.py:382-389 | fastchat/serve/monitor/classify/category.py:451-458 | fastchat/serve/monitor/classify/category.py:525-532 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf977e9106bea05c3765279de007cf519d14f121866bf46c287247943792cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): fastchat/serve/api_provider.py:279-361 | fastchat/serve/api_provider.py:438-493 | fastchat/serve/api_provider.py:693-753 | fastchat/serve/api_provider.py:924-975 | fastchat/serve/api_provider.py:1282-1347 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee1ba9d938202aebf538d66ac9bda9db8c79f10f945a84063f63d393b620997"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): fastchat/serve/gradio_block_arena_anony.py:143-153 | fastchat/serve/gradio_block_arena_named.py:122-132 | fastchat/serve/gradio_block_arena_vision_anony.py:214-229 | fastchat/serve/gradio_block_arena_vision_named.py:161-176 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989a2a8606358c495d3c96fcf12ec9d2a7858e7f3c5bfc04221e0f819260929"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): fastchat/serve/gradio_block_arena_anony.py:272-355 | fastchat/serve/gradio_block_arena_named.py:157-221 | fastchat/serve/gradio_block_arena_vision_anony.py:255-375 | fastchat/serve/gradio_block_arena_vision_named.py:199-302 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4773fe6139752715939e8453fd7cbef13025885e6a71e5d61878f5287ccea66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): fastchat/serve/lightllm_worker.py:78-186 | fastchat/serve/mlx_worker.py:78-163 | fastchat/serve/sglang_worker.py:82-162 | fastchat/serve/vllm_worker.py:68-170 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c942b87697739d82b631c6a3048bd27cecfaf5e23f42cdfa3895798bd03c5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): fastchat/train/train.py:96-177 | fastchat/train/train_baichuan.py:81-97 | fastchat/train/train_with_template.py:81-97 | fastchat/train/train_yuan2.py:105-313 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"73843adc853d1ba25fb6ab41577bebeda38b5ca1665cc502b82010cb6e2c7c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): fastchat/train/train.py:257-314 | fastchat/train/train_baichuan.py:276-329 | fastchat/train/train_with_template.py:338-396 | fastchat/train/train_yuan2.py:400-478 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09b4ebdd2f5e170099cd34d9a223d8aecffec44d6d02ea8a6ec08f08deb2d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (118 corresponding lines): fastchat/model/model_falcon.py:22-140 | fastchat/model/model_yuan2.py:22-139 \u2014 These two members are one piece of code written twice and then edited apart: 118 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a4184fa48c9ad18b160231b905572a512f7d29cc81fed22fff0414b36fd404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (107 corresponding lines): fastchat/serve/model_worker.py:304-410 | fastchat/serve/multi_model_worker.py:161-285 \u2014 These two members are one piece of code written twice and then edited apart: 107 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/model_worker.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e002394f32ae311e9ab78ca901d82a0b8b5d1a5d49763598b390332dd2b0840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): fastchat/llm_judge/qa_browser.py:197-266 | fastchat/llm_judge/qa_browser.py:270-336 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea7de82824fb4e3da23726c1cbcdfca838bbe66d5845f5affa9b5bda1fa8768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): fastchat/serve/openai_api_server.py:413-483 | fastchat/serve/openai_api_server.py:803-872 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c99698c2423730a8dff055a7bcde1e195ce6dec7eefa3b99b0d56611c0c1712"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): fastchat/serve/gradio_block_arena_anony.py:366-438 | fastchat/serve/gradio_block_arena_named.py:232-301 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae447417d54b47b18e334891bf387ecc9dbc54ea13bc3d3fb357a212d01970c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): fastchat/serve/openai_api_server.py:489-539 | fastchat/serve/openai_api_server.py:624-677 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb1807999c96219e1b15194c2d0cbf2325991dd42b4f0a04abaa4c41c196d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): fastchat/train/train_baichuan.py:243-272 | fastchat/train/train_with_template.py:301-334 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8936714dea2bbbea0b162ae14c3387f2349accd2ce71fb14735ee6ec26fa23ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): fastchat/llm_judge/gen_judgment.py:36-65 | fastchat/llm_judge/gen_judgment.py:77-105 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_judgment.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4e643f8a188f1ba81b659231eae7e01317c2dedd818d23496148643844d2a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): fastchat/serve/monitor/topic_clustering.py:127-145 | fastchat/serve/monitor/topic_clustering.py:149-168 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/topic_clustering.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd4b6d5094d1333907f9b6a32c1b788f8ca6e83d9c1e886de8be4110d67cb23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): fastchat/model/apply_delta.py:126-144 | fastchat/model/make_delta.py:15-37 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/apply_delta.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1db12b2f4ac635ac5f96c04e1c9600b1c68f2143ea1090910dac17a08e1310e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): fastchat/conversation.py:384-423 | fastchat/conversation.py:493-530 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f4a0b0d70b5ab90f7df72451aa6be58cbdf542f0600315a95dd5e56289692b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): fastchat/serve/gradio_block_arena_named.py:50-65 | fastchat/serve/gradio_block_arena_vision_named.py:73-92 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"070e39e36f1d22fb15717c7a2be5216edee335472199ce228d38b4f8bcf42a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): fastchat/model/compression.py:73-85 | fastchat/model/compression.py:89-106 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/compression.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b704414e2c79b7d2696e19698b99a63a3d0f956639b7ef30b7cf9e93b9dcfaf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): fastchat/llm_judge/qa_browser.py:48-81 | fastchat/llm_judge/qa_browser.py:85-110 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a3e72d20ab612312bdc56a61bf1b103c7a2064a7cd95fdcfebe5bc6e912d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): fastchat/train/train.py:238-253 | fastchat/train/train_yuan2.py:381-396 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e026e01f1c30adce03d7b2f531da41b3e0a281d41eb548ac644e44ef5f47e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): fastchat/train/train.py:221-232 | fastchat/train/train_baichuan.py:222-237 | fastchat/train/train_with_template.py:276-292 | fastchat/train/train_yuan2.py:362-375 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5699090149339d493c35856557d26ca83504662e437cd44eb94ab02821611a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): fastchat/model/model_adapter.py:1848-1864 | fastchat/model/model_adapter.py:1879-1893 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94668784394792cb0a61ff87223b0c6234eca731f6d5b15629c8ceaac7e7db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:137-143 | fastchat/serve/gradio_web_server.py:327-333 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65b96489b3c0cb967a837f49896dc991a9fde437ca60e39337e5237a214f609"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): fastchat/serve/mlx_worker.py:52-75 | fastchat/serve/vllm_worker.py:44-65 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/mlx_worker.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2183a050c5d6dcae211fc49a6e7acd27ca4e27c2617c42267a73c95ec79e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): fastchat/serve/monitor/classify/label.py:246-260 | fastchat/serve/monitor/classify/label.py:264-275 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/label.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a506751071553cefa18a5f2c401cb2feb7d8e0d14a13453aa576cb7f0db4062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): fastchat/serve/lightllm_worker.py:56-75 | fastchat/serve/sglang_worker.py:58-79 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64d8535c1ef03f7974b8a338bd4e70e5fc40a97164163251262fa7ac1797023"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): fastchat/train/train.py:184-192 | fastchat/train/train_baichuan.py:184-194 | fastchat/train/train_with_template.py:235-245 | fastchat/train/train_yuan2.py:322-330 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4262f0ff71d336b89523d098a9c01570431a28d0e2c601df60061104dd6f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): fastchat/model/model_adapter.py:905-916 | fastchat/model/model_adapter.py:1009-1022 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c943d8c02968779ce0860e3b30a3bdc356495173ddaf653f28044cbe2f62913"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): fastchat/serve/lightllm_worker.py:216-223 | fastchat/serve/vllm_worker.py:200-207 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1956cbdc69ddcee67beb36372455c6971056b89b47dccab52d6701b1b0d255fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): fastchat/serve/lightllm_worker.py:228-236 | fastchat/serve/vllm_worker.py:212-220 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"578110138dfe12cd96f8d63a22b3c1550b6e1f004a7ed02e4b017c33b118c17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): fastchat/serve/gradio_block_arena_vision_anony.py:118-127 | fastchat/serve/gradio_block_arena_vision_named.py:96-103 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"df74465d728423aaa377e56c04f0f0a530b536e3b2b14b77afdcf78b1fe0ebf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:102-112 | fastchat/serve/gradio_block_arena_vision_named.py:107-117 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ce14e208e6ca6dbe13c8c472b07f57f9f9ff2ff0e8bfd82636ee9359c12f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): fastchat/serve/monitor/basic_stats.py:60-67 | fastchat/serve/monitor/clean_battle_data.py:132-137 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/basic_stats.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5e5a7b14fafa51c79ea4c89d009a8f2666d25a994f309fd749900d06459682"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): fastchat/serve/gradio_block_arena_anony.py:157-167 | fastchat/serve/gradio_block_arena_named.py:136-143 | fastchat/serve/gradio_block_arena_vision_anony.py:233-243 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b49c31a2a59dfe6895939f5a767e61a8fcf95db863ab3773a663caf04734a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): fastchat/serve/gradio_block_arena_named.py:84-88 | fastchat/serve/gradio_block_arena_vision_named.py:123-127 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baa5d90ae0b9593923e5854cc6d3a86f5646e6d9e95245cfbbbb50df97dc379"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): fastchat/serve/gradio_block_arena_named.py:94-98 | fastchat/serve/gradio_block_arena_vision_named.py:133-137 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd49318911bb06026fe85d377ad54184731bb1c438078509b8d3a67a1eb292d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): fastchat/serve/gradio_block_arena_named.py:104-108 | fastchat/serve/gradio_block_arena_vision_named.py:143-147 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7150ac5a3e7f36e42d770d667203a1648ce10394952d0d94825e2876fa07dbca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): fastchat/serve/gradio_block_arena_named.py:114-118 | fastchat/serve/gradio_block_arena_vision_named.py:153-157 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c2557a21caff9180bce13c17c5035fc50cb2f5a6806b202b81a313cbf231cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:71-74 | fastchat/serve/gradio_block_arena_vision_anony.py:101-104 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ede200fb416ec3c8bc71e57bac6e134b2a9299361fe2e88363c21b25356b12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:116-119 | fastchat/serve/gradio_web_server.py:306-309 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebac94239681c6128683c685717a0ce8045fd81c738f07f4b474f17a3cf4830"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:123-126 | fastchat/serve/gradio_web_server.py:313-316 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf974a6c67364ddd7376fc5ddb4e1f9e7e236b48c8a3fcf14f22253716840a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:130-133 | fastchat/serve/gradio_web_server.py:320-323 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d3db687df5832d87705f4d23ac2795efa9389affc56c54cfb27ab0ea973576"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): fastchat/serve/gradio_block_arena_vision.py:147-152 | fastchat/serve/gradio_web_server.py:337-340 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b634159f38c36caee327d3e57734596fa64fc61a8602d1ae94cb647ed2993a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): fastchat/train/train.py:209-215 | fastchat/train/train_baichuan.py:211-216 | fastchat/train/train_yuan2.py:349-356 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb74c9b73dc81be47a905750071e186f177c8f34510798fe2497b4716965db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): fastchat/serve/lightllm_worker.py:205-211 | fastchat/serve/mlx_worker.py:182-188 | fastchat/serve/vllm_worker.py:189-195 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d37347baf082a7a49b5e52a0a84493917adc7cbbe469d4ba9cab536b3955c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85 lines \u00D7 2): fastchat/model/model_falcon.py:56-140 | fastchat/model/model_yuan2.py:55-139 \u2014 before extracting anything, compare \u0060fastchat/model/model_falcon.py\u0060 and \u0060fastchat/model/model_yuan2.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/model/model_falcon.py:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"957029382c5bd000c030a93eee0fc30ec182ca8fbd67e53e4eb1354b4b6d6eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48\u201349 lines \u00D7 2): fastchat/serve/gradio_block_arena_anony.py:390-438 | fastchat/serve/gradio_block_arena_named.py:254-301 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_anony.py:390\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a577199ab7f1ddda92c4446e51763640788c0a5c49534271af59009c17092600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): fastchat/serve/monitor/classify/category.py:461-501 | fastchat/serve/monitor/classify/category.py:535-575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaf3945f0ab1b3fe59e11d02e68d59d04158596c0135bb80222dd01e040e922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201339 lines \u00D7 2): fastchat/train/train_yuan2.py:168-196 | fastchat/train/train_yuan2.py:264-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_yuan2.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f871542db277f4c71fe3ccac0371b71c22127e64ebbb87357fe199737a7a20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): fastchat/serve/monitor/classify/label.py:46-83 | fastchat/serve/monitor/criteria_labeling.py:71-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/label.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a254425f791094378b94f943d2d9842ac1849e8ca82efd8eb032d6e763be4f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): fastchat/train/train.py:257-294 | fastchat/train/train_yuan2.py:400-437 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_yuan2.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b42f6d6113010bf4063bd8098cf4314dc25d5999c0f9ee2c3ad6ff81063bb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): fastchat/train/train_baichuan.py:276-313 | fastchat/train/train_with_template.py:338-375 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c755113882d727939163cd539c7e3c85f9fc249193ed1ef5fa34ac86ea31d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): fastchat/model/monkey_patch_non_inplace.py:74-109 | fastchat/train/llama_xformers_attn_monkey_patch.py:93-128 \u2014 before extracting anything, compare \u0060fastchat/model/monkey_patch_non_inplace.py\u0060 and \u0060fastchat/train/llama_xformers_attn_monkey_patch.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/monkey_patch_non_inplace.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f294b197b6d24203a2236ab3a35fea741cdb9b20c0a97c597b1f925fc11dc2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): fastchat/serve/monitor/monitor.py:523-552 | fastchat/serve/monitor/monitor.py:609-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/monitor.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"55804f9fa933f22878c66e058705c0ec04e6ae0d863d426da8d738e89ec1c939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): fastchat/serve/openai_api_server.py:437-465 | fastchat/serve/openai_api_server.py:830-858 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ChatCompletionRequest\u0060 in one and \u0060APIChatCompletionRequest\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060fastchat/serve/openai_api_server.py:466\u0060 calls \u0060isinstance\u0060, \u0060loads\u0060 and \u0060fastchat/serve/openai_api_server.py:859\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd8f092017361255ef0f058239b4474ecbf13806e88ba23c961a61353bcb098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): fastchat/llm_judge/qa_browser.py:229-253 | fastchat/llm_judge/qa_browser.py:298-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/llm_judge/qa_browser.py:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c1afe794a2c079d692ee47b0c376daa09d7043f63ae54d86627d084ef2182b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): fastchat/train/train_baichuan.py:243-267 | fastchat/train/train_with_template.py:301-325 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bb10201d0f24f65745042ad7a08161395346a2c9ec325e8b50123f164470c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): fastchat/train/train_flant5.py:404-428 | fastchat/train/train_lora_t5.py:177-199 \u2014 before extracting anything, compare \u0060fastchat/train/train_flant5.py\u0060 and \u0060fastchat/train/train_lora_t5.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train_flant5.py:404\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_flant5.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"221c77a969b19cb8ae1aa81dd4c8fdb568c9e13fc6bd76db51852ac84c8d717a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): fastchat/serve/model_worker.py:337-360 | fastchat/serve/multi_model_worker.py:193-215 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/model_worker.py:337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/model_worker.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"562e033ef6742724123339652c228aaab7f59cf5ecb990c70455707ba27a007f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): fastchat/serve/openai_api_server.py:413-435 | fastchat/serve/openai_api_server.py:803-825 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ChatCompletionRequest\u0060 in one and \u0060APIChatCompletionRequest\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff14c27f629fdd586f159579dd2e3c6bbbcfb5d575d2105854f3c077c9a08cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): fastchat/train/train_lora.py:195-217 | fastchat/train/train_lora_t5.py:198-219 \u2014 before extracting anything, compare \u0060fastchat/train/train_lora.py\u0060 and \u0060fastchat/train/train_lora_t5.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d47b96725750b79f99f4f471dafd46aedf14a2552c83bd328ee3d6bc5adcb7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): fastchat/model/monkey_patch_non_inplace.py:40-61 | fastchat/train/llama_flash_attn_monkey_patch.py:27-48 | fastchat/train/llama_xformers_attn_monkey_patch.py:33-54 \u2014 before extracting anything, compare \u0060fastchat/model/monkey_patch_non_inplace.py\u0060 and \u0060fastchat/train/llama_xformers_attn_monkey_patch.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060fastchat/train/llama_flash_attn_monkey_patch.py:23\u0060 calls \u0060warn\u0060 and \u0060fastchat/train/llama_xformers_attn_monkey_patch.py:31\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/monkey_patch_non_inplace.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef7c25152f8b49bf4fef9c18a3f7c4d08bb7f57c4d14de990acc25b8151b145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 5): fastchat/serve/api_provider.py:297-316 | fastchat/serve/api_provider.py:447-467 | fastchat/serve/api_provider.py:707-727 | fastchat/serve/api_provider.py:932-952 | fastchat/serve/api_provider.py:1283-1303 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e94400d160726cc9580bfb004e295bdf20623703b65f2654b4ba783b73885b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): fastchat/model/model_falcon.py:34-54 | fastchat/model/model_yuan2.py:34-54 \u2014 before extracting anything, compare \u0060fastchat/model/model_falcon.py\u0060 and \u0060fastchat/model/model_yuan2.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/model/model_falcon.py:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"86189d1be76cfec4d72cea6498e439b34445b1e7ef8cb1d727ff2dc3740490b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): fastchat/train/train_yuan2.py:161-179 | fastchat/train/train_yuan2.py:204-223 | fastchat/train/train_yuan2.py:256-275 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_yuan2.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc743a55d56be24bb5206fc58cdc2752bd532b5aff8a3b3b0663c2d0ea45ad2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): fastchat/llm_judge/gen_judgment.py:46-65 | fastchat/llm_judge/gen_judgment.py:86-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_judgment.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7400712bef4c394bf75a5d7b7c913f8ccee0c71c2bd4a8937aed17f3463b510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): fastchat/train/train_lora.py:135-152 | fastchat/train/train_lora_t5.py:137-155 \u2014 before extracting anything, compare \u0060fastchat/train/train_lora.py\u0060 and \u0060fastchat/train/train_lora_t5.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train_lora.py:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b59e4dd674921b38d2324bbb59ea44eb60192b4c8c9157ff64454eaa89de0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): fastchat/serve/cli.py:200-217 | fastchat/serve/model_worker.py:366-383 | fastchat/serve/multi_model_worker.py:216-233 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/cli.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36ca3509dba8f354245bd8e2a5998c275ecc8b58062723e6b60c23f6a12b960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): fastchat/llm_judge/qa_browser.py:204-221 | fastchat/llm_judge/qa_browser.py:277-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f11b64536fffbe2c3f0f89630aff3d4a2b58651fe76dbaaacb2760f97e4d5f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): fastchat/serve/gradio_block_arena_anony.py:370-387 | fastchat/serve/gradio_block_arena_named.py:236-253 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_anony.py:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0702ad2fec8d1be4f4ded5fd0f7ac70bb94a7d6166f0b215243b6a7a088f9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): fastchat/train/train.py:150-166 | fastchat/train/train_yuan2.py:232-249 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_yuan2.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"737595a63a83c40fe4f41506c060c7125ea6f1bf45c94257170ea5adb28dc14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): fastchat/train/train_baichuan.py:131-148 | fastchat/train/train_with_template.py:178-195 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"208d4b6aa04004889c83e99a1d0efa769eda21522e5c30afd8205bd8a684a3ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): fastchat/train/train.py:157-171 | fastchat/train/train_yuan2.py:185-201 | fastchat/train/train_yuan2.py:238-254 | fastchat/train/train_yuan2.py:291-307 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_yuan2.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3bbdd1a2f3ebcaf764eb235969df0d6c745f99749a54e1f20d245b3abeb213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): fastchat/llm_judge/qa_browser.py:129-154 | fastchat/llm_judge/qa_browser.py:161-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b246b6c4db823a509cad897203e18ea2bc412fdd7ff20e2a8af6b2b30a71aa45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): fastchat/serve/api_provider.py:399-414 | fastchat/serve/api_provider.py:1014-1028 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/api_provider.py:399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0529e44b04a6951cb136fe8fda5efb271e438eaad69aad0c3c8a2a75c87a077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): fastchat/serve/gradio_block_arena_vision_anony.py:215-229 | fastchat/serve/gradio_block_arena_vision_named.py:162-176 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_vision_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_named.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34d807c05f28b2916e155147fc40922b4f6fe1702675b96301353fefb732b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): fastchat/train/train.py:300-314 | fastchat/train/train_yuan2.py:464-478 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_yuan2.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf23d1e0dcc5b4e5ad1e1e1feccd36f350b5a41863cfaf98f45a74bb82bbe4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): fastchat/train/train_baichuan.py:163-177 | fastchat/train/train_with_template.py:212-226 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train_baichuan.py:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"183254c11800e93534efb50145ae44b19de5ed9191cc12ae1ba45046fd907f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): fastchat/train/train_lora.py:118-132 | fastchat/train/train_lora_t5.py:120-134 \u2014 before extracting anything, compare \u0060fastchat/train/train_lora.py\u0060 and \u0060fastchat/train/train_lora_t5.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060fastchat/train/train_lora.py:116\u0060 calls \u0060replace_llama_attn_with_flash_attn\u0060 and \u0060fastchat/train/train_lora_t5.py:118\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea28bce410fd7398c357b1a41001f117a0350f132ec579075fab369afd57a36b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): fastchat/serve/lightllm_worker.py:95-108 | fastchat/serve/mlx_worker.py:94-107 | fastchat/serve/vllm_worker.py:86-99 \u2014 before extracting anything, compare \u0060fastchat/serve/mlx_worker.py\u0060 and \u0060fastchat/serve/vllm_worker.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a27f2e9288b4976f948630b5b3ac3d4bf1e554cabc2c19282a28f4b1271446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): fastchat/model/model_adapter.py:1848-1861 | fastchat/model/model_adapter.py:1879-1892 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060fastchat/model/model_adapter.py:1863\u0060 calls \u0060eval\u0060 and \u0060fastchat/model/model_adapter.py:1893\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d9d90a437852967ac1eb26fc5912262a7338dcbe6c476c5b2c85e8c44da47c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): fastchat/model/model_adapter.py:1998-2011 | fastchat/model/model_adapter.py:2032-2045 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd325eb62ba7311245c9a07e2293c64fc392f861dae403cf11e1bc51bd9f1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): fastchat/serve/monitor/classify/category.py:164-177 | fastchat/serve/monitor/classify/category.py:236-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"79060f681db37b5241105f219c45af4f68d381882aa111a78fb5bded7a2cb17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): fastchat/llm_judge/gen_judgment.py:138-150 | fastchat/llm_judge/gen_judgment.py:154-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_judgment.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8311712918e94ff3c079e9ff0feee475fdf675be5c6625230463ead5acb87541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): fastchat/serve/monitor/topic_clustering.py:133-145 | fastchat/serve/monitor/topic_clustering.py:156-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/topic_clustering.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c93d554e46c8bed4d94b2a390ff9d0adfd24bb9ce980969ae2861d5cce0f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): fastchat/serve/openai_api_server.py:508-519 | fastchat/serve/openai_api_server.py:644-655 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f5c520c8b08a8b0d7ab558f70de7d288a5e453d246553c08454a0a954ef6e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): fastchat/train/train.py:100-110 | fastchat/train/train_baichuan.py:83-92 | fastchat/train/train_with_template.py:83-92 | fastchat/train/train_yuan2.py:109-119 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_baichuan.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57debe72eb5beb14f05385df0e7350f2c6014baa2bfb4821458d100ea34e46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): fastchat/train/train.py:270-280 | fastchat/train/train_baichuan.py:287-296 | fastchat/train/train_with_template.py:349-358 | fastchat/train/train_yuan2.py:413-423 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_baichuan.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train.py:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13fa9f9d9112ad6b10966b971797635ba093c0b021e82a9c1712940504ac68e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): fastchat/train/train_baichuan.py:319-329 | fastchat/train/train_flant5.py:423-432 | fastchat/train/train_with_template.py:386-396 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train_baichuan.py:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060fastchat/train/train_flant5.py:422\u0060 calls \u0060make_supervised_data_module\u0060, \u0060Trainer\u0060 and \u0060fastchat/train/train_with_template.py:386\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"963ef16110099f3545c57e528454269c159d9a0f1dadd517d06722276a184111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): fastchat/llm_judge/common.py:222-232 | fastchat/llm_judge/common.py:394-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/llm_judge/common.py:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afb39786ab9efd5a2994fc320ae14328e76b9c6d1f697f39eedb7cb2199af2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): fastchat/serve/gradio_block_arena_anony.py:338-348 | fastchat/serve/gradio_block_arena_vision_anony.py:358-368 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_anony.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_anony.py:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060fastchat/serve/gradio_block_arena_vision_anony.py:355\u0060 calls \u0060_prepare_text_with_image\u0060 and \u0060fastchat/serve/gradio_block_arena_anony.py:337\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ad68b29162926f20ecd188ad780b829746856f253d7d2eb7ac679d3863287c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): fastchat/serve/monitor/classify/category.py:68-78 | fastchat/serve/monitor/criteria_labeling.py:57-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5242402b140875d9a80611b375d529ba64bccaaa81a0424b45333d4a241f783f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): fastchat/train/train.py:297-306 | fastchat/train/train_flant5.py:422-430 | fastchat/train/train_lora_t5.py:192-201 | fastchat/train/train_yuan2.py:461-470 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_yuan2.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"641bdf0e0d6eb8e3772508d17de2a4e3c4fd1a909c1ac76521f579c53fa5c6d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): fastchat/model/monkey_patch_non_inplace.py:63-72 | fastchat/train/llama_flash_attn_monkey_patch.py:50-58 | fastchat/train/llama_xformers_attn_monkey_patch.py:59-68 \u2014 before extracting anything, compare \u0060fastchat/model/monkey_patch_non_inplace.py\u0060 and \u0060fastchat/train/llama_xformers_attn_monkey_patch.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/model/monkey_patch_non_inplace.py:63\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/monkey_patch_non_inplace.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff56c58cdd19cce5d30e8dbba4cb007d273f3a13128bd5579b07d8ed02859e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/llm_judge/common.py:417-426 | fastchat/llm_judge/common.py:450-459 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/llm_judge/common.py:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"942f79a343aec9930edb0cfb6ef2395ffbae4506e49a299e414e1e26ddbb1938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/modules/awq.py:76-85 | fastchat/modules/gptq.py:66-75 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/modules/awq.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a921fc1f22a7b17333ba141068caad0492e3625fabf76332668068408d801b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/serve/cli.py:62-71 | fastchat/serve/cli.py:177-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/cli.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c560718f75cd4f2d8da239babedec75f39aa8ea41c50e146211376fc6f4f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/serve/gradio_block_arena_named.py:174-183 | fastchat/serve/gradio_block_arena_vision_named.py:237-246 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_named.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_named.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_named.py:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bccb485294675977dc2094c68ac9f74feb86c2cd734c34b87e4f07909748a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/serve/mlx_worker.py:85-94 | fastchat/serve/vllm_worker.py:75-84 \u2014 before extracting anything, compare \u0060fastchat/serve/mlx_worker.py\u0060 and \u0060fastchat/serve/vllm_worker.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060fastchat/serve/vllm_worker.py:86\u0060 calls \u0060get\u0060 and \u0060fastchat/serve/mlx_worker.py:97\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/mlx_worker.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b5c2f95be4550436641c0f81dff3982822e2f02ccc60067a925abac65b7190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): fastchat/serve/model_worker.py:305-313 | fastchat/serve/multi_model_worker.py:162-171 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/model_worker.py:305\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/model_worker.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c4a70f9ef83eb21ff9db60e8995f98b1cd397ef13cd05feca1c062d2f8c80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/train/train.py:126-135 | fastchat/train/train_baichuan.py:113-122 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_baichuan.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e889e2511dfdac471ae3f84dcfbc064b5774be10de79987dc759877dbe4430a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/train/train_baichuan.py:228-237 | fastchat/train/train_with_template.py:283-292 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train_baichuan.py:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2a019e4d4a6d622952c5f2c56fca64ca244c1822f4472f9c5e8bedbcfee729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): fastchat/serve/gradio_block_arena_anony.py:305-313 | fastchat/serve/gradio_block_arena_named.py:178-185 | fastchat/serve/gradio_block_arena_vision_named.py:241-248 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_anony.py:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc04e3135ed792ebced6c6397cf8dd832ebb52eb49d99e6132badd78f614f4bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): fastchat/train/train_baichuan.py:319-328 | fastchat/train/train_flant5.py:423-431 | fastchat/train/train_lora_t5.py:194-202 \u2014 before extracting anything, compare \u0060fastchat/train/train_flant5.py\u0060 and \u0060fastchat/train/train_lora_t5.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/train/train_baichuan.py:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf82abdd9d4281d9adbede89a9a5dfbe7cbf8a9d94d63f1c8021c77cd0c6cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): fastchat/llm_judge/common.py:136-143 | fastchat/llm_judge/common.py:236-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a0253284798363c1d70073635cc1c96275a2e0c6319ed5a0618cc9df34bd19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fastchat/serve/gradio_block_arena_anony.py:144-153 | fastchat/serve/gradio_block_arena_named.py:123-132 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5247ff1db2eae2f741a0635dd3f86a04c28c0087080f57f18d188dc91ebd73a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): fastchat/serve/inference.py:425-433 | fastchat/serve/inference.py:438-446 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2fc136bec8c75447b61e9f547813fc22f80f80120aac62a3f272d40eba21b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): fastchat/serve/monitor/basic_stats.py:142-150 | fastchat/serve/monitor/basic_stats.py:153-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/basic_stats.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5396ce652bfd22368194bdcd9c02d6f5a68ff9df888e1444514ef1dd31a8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): fastchat/serve/openai_api_server.py:469-477 | fastchat/serve/openai_api_server.py:859-867 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba87c352e0fb3aebe297442e15bf1696acc0520d5e567d301f39d98c23a33721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): fastchat/serve/monitor/classify/category.py:133-140 | fastchat/serve/monitor/classify/category.py:205-212 | fastchat/serve/monitor/classify/category.py:274-281 | fastchat/serve/monitor/classify/category.py:318-325 | fastchat/serve/monitor/classify/category.py:382-389 | fastchat/serve/monitor/classify/category.py:451-458 | fastchat/serve/monitor/classify/category.py:525-532 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c0a14c1d99bc4d6412ada213f9f586024c16d73210af674b6eff250815beb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): fastchat/serve/gradio_block_arena_anony.py:143-148 | fastchat/serve/gradio_block_arena_named.py:122-127 | fastchat/serve/gradio_block_arena_vision_anony.py:214-221 | fastchat/serve/gradio_block_arena_vision_named.py:161-168 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_anony.py:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"997f3c7474d3c1ec5aacc739adbc2ef66a6dd4106930cc351f24c13ed366a384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): fastchat/serve/lightllm_worker.py:78-85 | fastchat/serve/mlx_worker.py:78-85 | fastchat/serve/vllm_worker.py:68-75 \u2014 before extracting anything, compare \u0060fastchat/serve/mlx_worker.py\u0060 and \u0060fastchat/serve/vllm_worker.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060fastchat/serve/lightllm_worker.py:87\u0060 calls \u0060get\u0060 and \u0060fastchat/serve/mlx_worker.py:87\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a0fb01a23d671cfd47b99a112e206056fb2fd7629d1144e80f2f5372c291ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): fastchat/conversation.py:443-450 | fastchat/conversation.py:588-595 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2812e751f9561e6971359659364bfa6ca224b994ff65f902ef44c6ccf2909f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): fastchat/serve/gradio_block_arena_anony.py:320-327 | fastchat/serve/gradio_block_arena_vision_anony.py:318-325 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_anony.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_anony.py:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"5536c9efc1e52432e077a9d78663b11268dc94c704ed01f0b15b5517a6d34bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): fastchat/serve/gradio_block_arena_named.py:192-199 | fastchat/serve/gradio_block_arena_vision_named.py:256-263 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_named.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_named.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_named.py:192\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd0cc8a2022264c8878ef22206625c5ea72d5f7522bd68bb52ab4ea50b36aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): fastchat/serve/mlx_worker.py:83-89 | fastchat/serve/sglang_worker.py:87-93 | fastchat/serve/vllm_worker.py:73-79 \u2014 before extracting anything, compare \u0060fastchat/serve/mlx_worker.py\u0060 and \u0060fastchat/serve/vllm_worker.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/mlx_worker.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6b029ff9fd5255a5212636cf21246f6b19ff977ad3df03b05289bb872814cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): fastchat/serve/openai_api_server.py:457-463 | fastchat/serve/openai_api_server.py:588-597 | fastchat/serve/openai_api_server.py:850-856 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060ChatCompletionRequest\u0060 in one and \u0060CompletionRequest\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ff074a5f1daab4855d1d8bff0b522528053b757dbff927801555e9aa3adfb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): fastchat/serve/gradio_block_arena_named.py:209-215 | fastchat/serve/gradio_block_arena_vision_named.py:290-296 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_named.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_named.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060fastchat/serve/gradio_block_arena_named.py:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060fastchat/serve/gradio_block_arena_vision_named.py:287\u0060 calls \u0060_prepare_text_with_image\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py:208\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3ac479c7c3405bcfea287ccb1daf57687dc1df5eb62d164918c2eeae8b579c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): fastchat/serve/huggingface_api_worker.py:282-288 | fastchat/serve/model_worker.py:304-310 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060fastchat/serve/model_worker.py:311\u0060 calls \u0060add_model_args\u0060 and \u0060fastchat/serve/huggingface_api_worker.py:290\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/huggingface_api_worker.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bac68935729db22d704cdd0f4bcbfc70bb8d545cd3b00011af54c0e3db41283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): fastchat/serve/gradio_block_arena_vision.py:137-142 | fastchat/serve/gradio_web_server.py:327-332 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0872f0bbfe3d8679e833c2c2d75a3d14ce83aea821d94659f9904816d497f0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): fastchat/model/model_falcon.py:22-26 | fastchat/model/model_yuan2.py:22-26 | fastchat/serve/inference.py:75-79 \u2014 before extracting anything, compare \u0060fastchat/model/model_falcon.py\u0060 and \u0060fastchat/model/model_yuan2.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec66f69fbf1db9f9fe258d12237d236c5c6db699d1363722a988edb7545e6d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): fastchat/model/model_chatglm.py:75-79 | fastchat/model/model_codet5p.py:23-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_chatglm.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51dab55774f4ceef36330c524a9f79dd851d33e18a8c80e7c68a4627ac24cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): fastchat/serve/gradio_block_arena_vision_anony.py:354-360 | fastchat/serve/gradio_block_arena_vision_named.py:286-292 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_vision_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_named.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67956d54749306240513e1ebcb5e359e722b85236c64902fad54227e52b25a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): fastchat/serve/base_model_worker.py:198-202 | fastchat/serve/sglang_worker.py:199-203 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/base_model_worker.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b928274c648ff24ba46799b610643632ef075c17978a8fb3c591701da7ccdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): fastchat/serve/gradio_block_arena_anony.py:105-109 | fastchat/serve/gradio_block_arena_anony.py:115-119 | fastchat/serve/gradio_block_arena_anony.py:125-129 | fastchat/serve/gradio_block_arena_anony.py:135-139 | fastchat/serve/gradio_block_arena_vision_anony.py:176-180 | fastchat/serve/gradio_block_arena_vision_anony.py:186-190 | fastchat/serve/gradio_block_arena_vision_anony.py:196-200 | fastchat/serve/gradio_block_arena_vision_anony.py:206-210 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_vision_anony.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e9730c03f889b0566d9ac6c12073d3f22cec26fc1557631ba77a1d6d8edd75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): fastchat/serve/gradio_block_arena_anony.py:171-175 | fastchat/serve/gradio_block_arena_named.py:147-151 \u2014 before extracting anything, compare \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 and \u0060fastchat/serve/gradio_block_arena_named.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c41b319111d37be61049befb6b6fe0644d8669c9026d3581a141f5dc372b362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): fastchat/train/train.py:82-89 | fastchat/train/train_yuan2.py:85-92 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_yuan2.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060fastchat/train/train_yuan2.py:96\u0060 calls \u0060right_replace\u0060, \u0060replace\u0060 and \u0060fastchat/train/train.py:92\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ea6302fab9b979659daedc99acd919d90af0f599754d1c6e1475f3431179bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): fastchat/train/train.py:198-202 | fastchat/train/train_baichuan.py:200-204 | fastchat/train/train_with_template.py:251-255 | fastchat/train/train_yuan2.py:336-340 \u2014 before extracting anything, compare \u0060fastchat/train/train.py\u0060 and \u0060fastchat/train/train_baichuan.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e6d64786d3b85185be56c65effed4329716ba0a6d23353dbee78b24449093a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): fastchat/train/train_baichuan.py:72-77 | fastchat/train/train_flant5.py:76-81 | fastchat/train/train_with_template.py:72-77 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f576ea7f6e4127739a04539957603ecd0e9153c482b80453a1bd298375914d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): fastchat/train/train_baichuan.py:101-109 | fastchat/train/train_with_template.py:101-109 \u2014 before extracting anything, compare \u0060fastchat/train/train_baichuan.py\u0060 and \u0060fastchat/train/train_with_template.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca23fbeee60c75d2e4c11c8d855a99e63a842a79da4c450b77a93cfb59080413"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: import and use code from ../data/dataset.py \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_flant5.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"48818042bcfc640a0b4630cb205c2d465dece2395d2ea14edb2acea6581737d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: import and use code from ../data/dataset.py \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora_t5.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80e40c59e8940b9a899dc79bf4db70fcf4998da12f71de6d46f8e33853bd068"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Dacheng): verify this is a good way to split sentences \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_flant5.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dae37e43485053e8f072b95b3fe7884486f43f99ba150f67c5c0b73d34b8f2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Dacheng): This is related to whether the dataset has been truncated.. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_flant5.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7788dce6a8455d01c1c3a177d697e393a48daaa10d05d27c6b5f2e71556611dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(suquark): multiline input has some issues. fix it later. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/cli.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0bfaf6d5a8c161db2f34e58ec387a01f9ec0356176dcdd547c77373051d253"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(suquark): the console flickers when there is a code block \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/cli.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1de9eef3747f071984d2c0492fd6aa277c54353467a77c54c9871267f749bb1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(Chris): At some point, we would like this to be a live-reporting feature. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10f06235845d046474823376639894bc55721cd924bb2648bf02653d966b91e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(chris): fix sampling weights \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5054c0290a6db102e8311d755981976d0ce346beca7f2285df8e406c2ce9c7e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(chris): Find battle targets that make sense \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"34156ff232b65db2b8620cefe0ea5ee18667b339fa4fd3fd1b73187893a7eaad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(chris): Fill out models that require sampling boost \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"49979921e54f0c396118eeaf43cb2fa9a5fa2f07f92a377e1d6e8963033e6336"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Support logprobs\u003E1. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b906b1018f721885200764ba7f0d2dede09a7f40981474954f7b8daf0828296e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: Support logprobs for encoder-decoder models. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f707052caedcc5d698a0ca2f656d53c01e24bf0c4e719717084f5edb4bf9bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: For the issue of incomplete sentences interrupting output, apply a patch and others can also modify it to a more elegant way \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b730d44cc81e997a41b5edd1332add9ade92293dd9c247ce6c39039309df64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(chris): This only applies to LLaVA model. Implement an image_token string in the conv template. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"395ea876c4caa53fcc4bfbf6e4b0cf5c4ec86f1b268f5e3fe9cfb34f1d91f66b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: return real model permission details \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dbf12839d9908d8d60f9143b08593d0dda6b5d9262f383efa4dc734219d72f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo: index is not apparent \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed2081e554ef78d5999972347cf124e899ba3d4453d558b83bd9c29e65966e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this sometimes happens, need to investigate what happens. in theory the chat dict should be synced with the queue, unless there are duplicated items \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/vote_time_stats/analyze_data.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ab5d5b2a9a817d892a691c93aeefcbf3e415f126b995f28406ed9a19283027"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add the string length of the last reply for analyzing voting time per character. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/vote_time_stats/analyze_data.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c24711c6252bca699d8b57b121c2b651f221427babbc887307f1f07dbc90973"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this sometimes happens, it means we have the vote but we cannot find previous chat, need to investigate what happens \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/vote_time_stats/analyze_data.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f070add1f56422a16e55491dfcb5bb27b5d4a6b38a716f1649527db4d783426"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: change this to select different range of data \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/vote_time_stats/analyze_data.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa7be3cac6aac7fb2d6e3a0d9031e27188f2c8cb7c835c24d229325145baf4e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO (lmzheng): make it a priority queue. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f033613e3943a8947c65d72c6f2346688f02f92daf5561adff997ad274e979b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Apply monkey patch, TODO(Dacheng): Add flash attention support \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23e1fbcfb41958076e113322c64a30088ea5aabdf3b510f054c270b136f3b44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use the recommended template for 7B \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ce1d64e66ffecf207f490ab95972aa8e0e0e697773fd8ffb65d7340b64e854"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(chris): Implement huggingface-compatible load_model \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7df2730a69f3ec17d10537d2d7a574869dc7d379dd4e0429b91fac122dad34a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: ChatGLM stop when it reach max length \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_chatglm.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4549a6dd73a90480d4e752ac62745c820d2ad016e8234460e5edab3de7468114"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 95 % of calls cross a namespace and only 24 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fadc1c8e939673fb181909e8d64b43c3e0d147256ca192c768587f2c97d09ed"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0373c55bb073fb3bb14dad5f1a800b1e04a42309a50b0e5f27267bcca21130a7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67919650bcf9860776abbcc4ded1b9b09e2294f3ab2d30fe108dd540a3df75fc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"441fb53588b2d0d19ba6223c0c520b71c8cb6d342a7b838068eefabb75ab51d3"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce9aca4b177161dd2b498a4955f339aca2990fd31b71b9c8840ec4ec6ffa978d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e945b30fa1a3ea369c1c74e611c2bb4774bc17b9751c0a68fa78d94d0896f65"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ac91f9644b281215747e40ea3e27f6512d41512e15b77b9915a5fb61d830b07"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9de58b6ea3668fc7d050407bbec98b439a3506839facea4cb9be914c0ed83b12"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"86c269e001439be31ba739d27e284966ca780295accc38b16176591f7f403b0c"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5b67b32188548202ba877f2833d0680ee6dba7e4fb8d6448441b22bc158a575"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26d11ea7974f124b43b8186fef771e55ae2d9a960104785788add00515d6fe2d"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d78862f6d8bc8f48f5b7470176fa6e067dc69c6e37295074937a272029a2a4c"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a519e1bce085e3238418ef4e833e4b935a7b59f9756facd4a6bd3e9c6c3eb687"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c0f08f603295e829ec67ec84c9387d2cc0c4b71511a30008317556b8e49e6d5d"},"taxa":[{"id":"CWE-444","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1498b18f87cdc919dc142ebc4df370d8cf0f94a527620e2a6aabf03f2968496a"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"05d93385ca900d9356f0a9976cf405d3ec2909163ec7e5b3f3db89af3a145ee3"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9f20e4566f952a9f7685ae67d8b485659cf5e7919d91911153e6b1a52ed8c1b"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d47a939ef079bc344ab548817bda747abbbbcbff71607c31983e72771aea6b87"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95e8744c472cf38701ab60b5e1f5e9bc140c8d128e169ad42b75fcfc96f39b8e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"684e54e9431479762bc152f1ed751c25007ae022390aaedc04386dbc16753d29"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cac8f11e18d33b43f6d5ede977bd2d83cc0a970dd4b49e3f62d3be213b38bee8"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9deb0b3e9568df1171bacf908174d514cb7e71041f1c1975b38340d1bde8fc0"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2e1c33b058c005e6250f1c0f084e946c06ff1870f1bdd4ba3f17649dd503141"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"456d2c3f511799653c765ed1632fec68481d07b1aa9db4d76a6f5dab8c714fd8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55767f2c444a26685885e6e4aac2d13c70d145e3d8f738cea4dd407e7cab7e18"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bca0d3f31d7b039b28ed6b824a6e3dbea1044b234ac21cf260ae5297ce2c889c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccc0cc717a360059224d480b2bc872b7f88a881960a07fa78798e15be3c752b9"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 86 of 86 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 86 separate risks. Counted over 86 of the 133 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d0c47b4ca26e53c1c4c1280e2e9c9c321c8a39f3223cc165ca6844f8ee70c6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_adapter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6788b17b009be92577e0a8d6c767ad8784f989d3df964b4245aa825fef9b6559"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c462f699157a0be660b6b56c4bb0df53281df52677585c8ce8da87b7c798216a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/monitor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"368764ba23a49345b7ca5f03617d7fa6328795ced16232b57cc3d73be2e8be06"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"312babd3ddad9c4dc1e491e6712491fd7e4cf63220ff92027adda58e4c1fde79"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/openai_api_server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2431c8a37c21c2e51d7dad88e454ecf438befe96d013fd3fc0349578216a9c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca33c0219d1fb28cc9c771ce8cec2c254dca87d92ae98751e971e4328acd24b2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28abde527c4036fa7e5faaf273c1b9f0e503c0ad8b49df6ba786f0bd139c6e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c750031d13453ec461ef3690d37e4166cd3501dfd5f313e1e93bbdc57b48be3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_anony.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea61d7fe2c7a026dbc487a47f4658b25d0ff246ab5e6d4491210d9243c7dc73"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3f1464f083434e3ad35cac07ca909b8b2e81414ec75233ef8d2000ebbdd5fb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision_named.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ab652edaad4e75ee6213865561e824231191b3ccfcc9214e739704eac3bb3e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/inference.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b83b5a71efe7dfc42bed41ca2f3a308dadc3e74224ea9b232c7b3443d41ab2d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/elo_analysis.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ba74d2f1271d4879d1b27623abef7d63eabac089d77a11fd8cbb4511cd8d70"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b4a06125a90a041c6a1c1013584d181da40c8706ba8a8fb99d5b737c41cd41"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_vision.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaca3c5cdefcca7efd6a19dbed9c952f3087d88d9e8bcba2e9c7f024c962ed82"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_yuan2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c4dfc18ea0699878ea8797a4705a9f7877529d41c7e4ea80c2e096324fad2b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_named.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a450b29e7d39bd84ae6b657459f68add93feaa7f3ffa465d6d9899da65242719"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf2a34400e3f710a286f7c4dd145253a928680d82ebf32c035c00018d9d2482"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server_multi.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67ae445bc1ada24fffbdbd4643739bec3864d06869147564aa3a9ad0161d9ac"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/model_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a356b1585b0d8f2fd773d22d6ada7ae20748acc350ef2decf4aa81948aa8f9b0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_flant5.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acc05bd1a0e813d18e7890074fbd39fba3efdad1686b05182c80ac52c65e99c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/label.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60668419a02ea486f0a834f1724e0dfbf2f70da5d2872a925c67e8cc122d4d3a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_with_template.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d43eb95ea7bd335d3a01b60d214e398b7173dd094da50333ae454de39a9fd1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/rating_systems.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e629a1ea7f96fbeeb020878e81e22fb9cde30986f4ee748c54615b64a975fc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/qa_browser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"188903936c5e28776c6d2ce14406f9ed75368d2e2c85e2b125844d0d514cecab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/huggingface_api_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51497654d3383b9176ff6940935afcf98256259c4c3049a40c0a4c035b59680"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/clean_battle_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a93d9aa58a61dba9e21c9724efbc66183a76152089df73a6c23b1099a0561cb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb2c0ed525f6e8060d7ad46ce17047212666bcdd2572cdaf9b8eb872d363200"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_baichuan.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97416e45537af9a0b79f780993c74ee4ccc3a37c57861e8ca99c49ab41ad051"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/dashinfer_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf891d25d0383d2ea24f3709ab7d3f1f9a07aecc9997b121ff083134b5065331"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/cli.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b3d048caa2f884472e188bf14de9da81c8ce1065c00d8641ee72d96b6e34f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/compression.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baa1ff378c1341edcf82a2d169b3ee912dcf41ef5648d5dc40ee9105d79325d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2335c368dd2507f025e6f6d7c4b84fe1fc8fe32992e936f734b9556c23880445"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/vllm_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"367432d2cccc8acd7f1dc3880500be1e63e180bdbcea54b4f3109792efda9a6b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/sglang_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fbd58ff15eafde95d8d64c7b3c4dd52853e0135977a1a83edc08a5b4266743"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/multi_model_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ec0a5149f7482d96cec14263c40530982364ced6d09d6ee05277dc0527ae2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/topic_clustering.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaab1c0bf56c4e2afb46a6c2a6564f1ea11eb3caa2ff4ca89d4c2b2ad4aff96"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/monitor_md.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7402e159483bc5b25a75dde1829aad763d33bfef5c211c60252c41720baf2cad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_model_answer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"789e57a0a2d2b2aa7e8c3d6ec761654641590bcf3dd11b7945e4e083893683e6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_judgment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ce28570a008618bbbff248baed28791cb4c5d15bc3f48eb2004d8251a308cf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/mlx_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97378d02919043de96b8135694dd911436a6014b94884e0c7eb3c7f62f6774d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/launch_all_serve.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c561d6b9b2c9e41dd01d6208c939dcc91e8422cb034330ac2280644b834c9dcc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/llama2_flash_attn_monkey_patch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3491010faf4df216f6a77ffa49758a4e39750f7fb4cc81a4d87780df40de515f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/criteria_labeling.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5301bd9a2f1f08584292b1a6ff461417c7d366db14ee3e235102cbe49e6c7e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/call_monitor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35238538491315ecd05ec240c7faff68c247ecda1698aa8ea509a7bdcfa8e581"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea524fb3e126be4836fde6e3e9c3e578c6d9d502829be549075680a88cfec67"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora_t5.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53201cedd28b72fb12044341a27f8bb419e0f5b1321a06caf51db5994e3f526f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/basic_stats.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c37817235be5456252b79773bdf187e6d47c5b12a4349e685e63c784efe9174"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/clean_sharegpt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad0bd159a03b778bea1f3c798da48ba321f4a023b1f0153a2fe559215b5658c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/base_model_worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2880088a8717fd46782ef9e8d18555d95785c5183344959035931d78cad281cd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/clean_chat_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a09e028f8fba94b01d5d4250309584dde5732f9c069c2e7635613d3a2f937f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_cllm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2186d64d5a88b9c7df4e0d756aae63ceb469d86e95a0a07fc2d87e708ede4a9f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/hardcoded_questions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51806a1e67b9b2d8cee56333f5ad1229e8fc406b984bf79443967a0939c6cf75"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/apply_delta.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7155064094b92dfc0c3d93362eeebb25cec52f2d471e2da9768e067b458fa36c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/protocol/openai_api_protocol.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23902caa0a5ea521aeed0551dda387b0600c14a80dc2864769678692de537222"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/llama_xformers_attn_monkey_patch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6c88932b864b05adea398d039b3e61efba791b363b71add2c7f19b13bead2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/protocol/api_protocol.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2ca104a716bbb2985097c73063727ee3f94f64b06d4e33e2cf60bc0c043eb9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/gen_api_answer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b4506580a9561e45725ccab5777d4aaf8a2db8ff6fd98f35de76aa8a248b99"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/show_result.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"258178317621eee24bd371584705a50f4f17652b2afb5bc7ac2fa7fb84738f95"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/vision/image.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2234a24f67bcf036f5db91b9324f4537d4fcdbda3e52562b7a9126108b4e36f9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/arena_33k/filter_bad_conv.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3613e80ccf6a9f5fe218bc1991de1fbacf4c04790f17ac4d717e1225143813"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/compute_agreement.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed21707ed45c3d9705d9d93937deb00f66a196586f38f805d0e2d5a4c49e187"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_falcon.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"092c63752e1775b8faf9e685dde20245511cafc7da3cd08f1e3c5eb811156c17"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_yuan2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"898672ac16341a98e8ae3636868811b98bf10815aafac3d8d3ed65da6097b753"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/filter_bad_conv.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"305c35216475252464e41f0b3d1a3b53cf493328db33beea9bc46e892c82cf3f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_chatglm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca2bd8da668919723d9bba1aeed138ff5e58d30ed09d42b559b70d0fd09819b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/monkey_patch_non_inplace.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3256ca5fab1c73f8d1fb471e8c36f69fc7f5176849bc01f460532953af2a044"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/llama_flash_attn_monkey_patch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b383e3c894a8155de909bc3ed35b69c47ae2a85b7fe74794ebc1d392bf0382d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/vision/create_vqa_examples_dir.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef7368aa7b15c66f9c692b6dc65b1d5f5e7db428b55e7fb8680f8a8bcac05fd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/vote_time_stats/analyze_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b55690b55eaf934db29eaf591b4712a52e386cc1aad14d0e6abeb341a471dd3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/constants.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2f87fb6cd8260927a3a93e049d5e90e702cd2f4f29a26bf10b74258c0e3ac3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/split_long_conversation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"179700083c4486828862c25428829297a980b32e4d2815f4d6f35360645486af"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/copilot_arena.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb773cf384a5b26e69657e2553c25d9bddb23866401bff7ce20f2243243ffb8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_codet5p.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03591f2efdccf02743a0167c45b8a7fc30bed9e95132db32d4b40646e045da46"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/summarize_cluster.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90500003c363913fadf99a1a421f77497c266b220ab4b066c6add8b9111a9925"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/compute_stats.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f460753b07bde6ec2b54de0bba733408e5b9c560ecb2b70027c95ef2d46a3a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/llama_condense_monkey_patch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1ef51ebde6dcce3bd10d17fdf2cf9771652e6e8d77a1c1fd13e9e09bc5868f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/inspect_conv.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81cff4141d7dd76f0cb86e8a66955e480ef337ebad89612dd68982536614aa9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/add_markdown_info.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e23007e197abbf35dd5ca6508202777cfae53fbfaae21be01ece53f3a861fb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/optional_clean.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadf8f42aff8d6ed826da40ca1a12b15f463c00a86915491c360add23123bbed"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/deduplication.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"628864d23c3c9932d624228e37640c0ea3a9534ff46179cbd56b0339ddc67e40"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/modules/awq.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfd1543da66257027dedad1d93b7d7a1e2ad038b052fb519455a3fe44b3a2b0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/rwkv_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7586271808d61727acf389cae35814a187b69b7c0193ad324acb5f72e285f3fe"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/display_score.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebd9c1ce9da4bf50c4e4c09898fe89445398346811af292eff15ef1a46eafc7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/data/get_stats.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"317ada506301ab737cfff4a6bfbf433a2238d2da409bb021ee179e8981c3b297"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: model_chatglm.py \u2194 inference.py: \u0060fastchat/model/model_chatglm.py\u0060 and \u0060fastchat/serve/inference.py\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00603cbe2a55\u0060 fix bugs: remove eos token when judge_sent_end open and sentence not \u2026; \u00605ebce039\u0060 Misc maintenance updates  (#1830); \u00609d857345\u0060 Fix ChatGLM prompt template (#1786) (at that commit the file was still \u0060fastchat/model/chatglm_model.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_chatglm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddac5308ae27169711ab022afd65b5245e3a504b9d6d5d604aaf9356de2438b8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: huggingface_api.py \u2194 inference.py: \u0060fastchat/serve/huggingface_api.py\u0060 and \u0060fastchat/serve/inference.py\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00609b128520\u0060 [Minor] code style improvements (#2131); \u0060edef7de8\u0060 Improve docs (#1738); \u006055051ad0\u0060 Support specifying \u0060revision\u0060 in \u0060load_model\u0060 (#1699) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/huggingface_api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"addd06abbbc7b769bac1433220964bc5568482804b0c9ab6054edee96d53a9d8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: api_provider.py \u2194 gradio_block_arena_anony.py: \u0060fastchat/serve/api_provider.py\u0060 and \u0060fastchat/serve/gradio_block_arena_anony.py\u0060 change together 52% of the time (15 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u0060d6e34ff7\u0060 Update vision arena docs and fix system for test (#3337); \u0060a62ea52d\u0060 Add CSAM and NSFW image moderation and fix Reka logging (#3327); \u00601f60e7fe\u0060 code update (#3286) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/api_provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7f425c6a5842f1dd4de8a95ab6c72c5cfe9fca1dcbec975896de747c683bd3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: model_chatglm.py \u2194 model_worker.py: \u0060fastchat/model/model_chatglm.py\u0060 and \u0060fastchat/serve/model_worker.py\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00605ebce039\u0060 Misc maintenance updates  (#1830); \u0060edef7de8\u0060 Improve docs (#1738) (at that commit the file was still \u0060fastchat/model/chatglm_model.py\u0060); \u0060e276c2f6\u0060 Adjust the limit for conversations (#1278) (at that commit the file was still \u0060fastchat/model/chatglm_model.py\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_chatglm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c0c2e0913ca2d7138ce26f3f824ca9aa89d6d99f7f18f5144b0df491b925a8"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"187a8209df1ffc125c07201c9dd48dee17e52beaf9a231464592e0aa60f16ee2"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/python-package.yml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/conversation.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25a5b3d841ca1839ffbce86bd8d4cca8ff9b5d3b6f05fb7016ace80b9488256"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/base_model_worker.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb60618f9ffe58e287c242fa1d15b7d007df4b780a641bfb824ee81d7f7c3a0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b2756257f58e6ae0f46afd8eff8992e6d8f3b2458ddec3cfa6b5be45a0586b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c218593906bbb3beccce10a1d7b57ff7843ace0a21724057ab3302ade4696aa"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a619ebc8e353c33063bc9a47c05b68444ffe3cbe4082f12385c94ae968d0ead"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_web_server.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b83bf07a01a1f3a8da0cb2490f4b15d1a8afa1d7c6013fbb086949aee4832e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/huggingface_api_worker.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e39fd0e343c73e3c011f435569a5c4f76536c4d71489fe2b673beb77b6789c3"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/copilot_arena.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc6ab16a0adf500090818b48df1c74adb196e07710ff8c6524847049b8d311a"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/approve_all.py"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed65160824c03152a644df7f2d2b3bd0197330359597f54077463acafdabfb1b"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/dataset_release_scripts/lmsys_chat_1m/approve_all.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"824ef7f1d9701754cf5f096b535c954092694ba3ad405bf5a98ca11ae9beed18"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/multi_model_worker.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8776bd5689c1c7d4c27ac78302259987207e2b3b1c80b68dd6884b74f791387"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/register_worker.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"44318fb1e40c58327f58950da8d3a69335b5ab2f7e79f528f744743b2294ff74"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/remote_logger.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"403c84feae4825d3b98102e87456cd1d8cea0e3882f7c4b784024f9c31635dc4"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/vision/image.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d82efd07f2562e11a1a146530445a4fcaf0e76c98a5b9b2c49e12b8df8d474b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060nginx.conf\u0060 is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gateway/nginx.conf"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2d01a740d7fbb2951c1e5be6c87ce6d11791469d551f469601e4fcaf2f2b1b"}},{"ruleId":"S1","level":"note","message":{"text":"Information-disclosure response header set: \u0060server\u0060 is set explicitly here. The OWASP Secure Headers Project lists it among the response headers to REMOVE: it names the server, framework or tooling behind the application, which is exactly what an attacker looks up known exploits for. (No deduction on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gateway/nginx.conf"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6934825e8ce8e9ddb0ce2dcb61b9166c7cd80ec82bbb614247d13d3b3e4b564"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/call_monitor.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"05efc3ee86a61466a0f49b4f841ff39a984e75e2241d91f82f46fc92f5ce6dfb"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060loop.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4a9a06803626ccc71256522db7cc3b1fe1b7278e28bbec33bdeae36c36199e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(stop_str, list) and stop_str != []\u0060 appears character-identically in 4 files \u2014 fastchat/serve/lightllm_worker.py, fastchat/serve/mlx_worker.py, fastchat/serve/sglang_worker.py, fastchat/serve/vllm_worker.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba2d070c090f67bf10d2736a2e0a883bb5476408f554f24fe816108ea791b23"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(stop_str, str) and stop_str != \u0022\u0022\u0060 appears character-identically in 4 files \u2014 fastchat/serve/lightllm_worker.py, fastchat/serve/mlx_worker.py, fastchat/serve/sglang_worker.py, fastchat/serve/vllm_worker.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9109fe2eade2a3624eb8c66361b6ec04cd45df94e59fd1af714fe0a66ff88b18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(training_args.fsdp) \u003E 0 or deepspeed.is_deepspeed_zero3_enabled()\u0060 appears character-identically in 2 files \u2014 fastchat/train/train_lora.py, fastchat/train/train_lora_t5.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"381da9a4c1c7a4282b7af87858a4bf0683e80ae93792f2ce15dcedcf9fb1697e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not ddp and torch.cuda.device_count() \u003E 1\u0060 appears character-identically in 2 files \u2014 fastchat/train/train_lora.py, fastchat/train/train_lora_t5.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"63db65162ec28b863251a1127d4a0db1c1307028c75b0d06fe765737d0581b66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060orig_ctx_len and training_args.model_max_length \u003E orig_ctx_len\u0060 appears character-identically in 4 files \u2014 fastchat/train/train.py, fastchat/train/train_baichuan.py, fastchat/train/train_with_template.py, fastchat/train/train_yuan2.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8e11f2d23250b8abae8a6e19f4f7109bdeb7a93196ad28d166c999267cf78c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.get(\u0022stop_token_ids\u0022, None) or []\u0060 appears character-identically in 9 files \u2014 fastchat/model/model_codet5p.py, fastchat/model/model_exllama.py, fastchat/model/model_falcon.py, fastchat/model/model_yuan2.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/model/model_codet5p.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d529bf961a511dc4f3d52d797b0658ec74166cc381a75cdac44a9d0d602e3893"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request and await request.is_disconnected()\u0060 appears character-identically in 2 files \u2014 fastchat/serve/lightllm_worker.py, fastchat/serve/vllm_worker.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/lightllm_worker.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"865bc4c8528695229569d4fdf42e245aa3ca819bf7ba0291352a74cd69b8fe00"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state0 is not None and state1 is not None\u0060 appears character-identically in 2 files \u2014 fastchat/serve/gradio_block_arena_anony.py, fastchat/serve/gradio_block_arena_named.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34cc9f16606e4ef1ea37f35d6a35bbf8315b2bd8fa5f3b06df823f66c7b421b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state0.regen_support and state1.regen_support\u0060 appears character-identically in 4 files \u2014 fastchat/serve/gradio_block_arena_anony.py, fastchat/serve/gradio_block_arena_named.py, fastchat/serve/gradio_block_arena_vision_anony.py, fastchat/serve/gradio_block_arena_vision_named.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/gradio_block_arena_anony.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef97a47685b32172fb3e5b69dbcdf3a7ef18f30068ec00c4ab78a08e084ad04b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060training_args.deepspeed is not None and training_args.local_rank == 0\u0060 appears character-identically in 2 files \u2014 fastchat/train/train_lora.py, fastchat/train/train_lora_t5.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/train/train_lora.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e036a9b5a9cd4df66d7beabbb228568a9c346dfc94156f92cb2eecf32aa3ac28"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/monitor.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"7232ea7f88186ac2a3bcbace95542e15c2ed33b3db726e75cd073de810329be7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/vote_time_stats/analyze_data.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acf7b181bdf8449c4c05a78b85f4da27dd4565fb4b2410101d827175b095230"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 83 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"02941620ab8f20b3f4ba5526cb7d6ede47b541fdf36509a0e0bbfaec1efbebdc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 85 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b00bfafb4a7539f0acdea99d746d8ec1ab3c0b3a7c819355ce8db8a9f49e02"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 101 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a146f604d2bf3d2c0617f332afd14aa35ec888dc8d0f395d7dd80341597a67"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 108 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"febb9fd84daf8ad23dce019d2069933abde4e829d645e982fcd40123640cf39c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 112 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f1177000470e32de663a4bd0936e2b9847a1fc1acbdf1edee826a04e26a6c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 128 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cad704516776a5787cbf9602d2a0386251857fc9ac7b8d50ffb5dd795700208"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 202 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b60d8d73b3f9e5b0ef0832d0931311c7e078bd2451dcad633579e1b89f61eb6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 211 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6235b8609ca717de9b8d8fd2d5ab2278d3f18ffcb9218c168d78e33ac6c10e96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 216 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"212a2768bec754d76f391f3ddd6060c80fc6213b156b0a0d68b2f0ba5a491e35"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 230 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e4bc758c5887aa8c2eeb793bf2dd83bbcdcd7f2a954bac8d01fc448d76ec08"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 238 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0e0329be5b5c8f0d47f1fd85713ed66792c5f81ecacb54f22d12adfb17aafa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 371 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/controller.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f8191bca60c6af98d08a8f04b2da03687717b52502607df0b81226e87a0f33"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 201 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/multi_model_worker.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"67179c64fc254e633b4cbb3a1e82c9494baa6c302ad831c6364edc61ddcbdaad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 17 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/remote_logger.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2cf05b3066209462fb42ad079cd58a769e936f17a11793f61e9f9d1b39c3e2"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c30bc5d9a3fcdafd5de3b0d388e89df9297692356e7550974b261dd06f85e15"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7d9c4681349ef5522fdbcb1136eea04155256bf50e7af7a0f242c97da45afc"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5173096b5a5d5b2170559409d727428182c973f212da6f17fd442584c89d8d06"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2724367fa788e1ae47fa904d085caed04ef59f313f3ebcdd8331262a07aab022"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"667a50e1a66d82ffb3cfb1ea7ac667a529df54a695e0fcefd5dad9e245f963cd"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4226c0ccb92434da3e8c9171c51daaf66ee82a858082b48037bf27f557b66ce8"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04afb4f7b7578ec111b33f92bd2d6097f2d6ebb6a905e9b9109b71b29f795ba"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8dce15b409d53394902d3debb74fe3269ea8b30e147a6cce1021709c69728d"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc75477b7649cb401fa87c0cc913b992440371db526e0d1962de70457d609b3"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/serve/monitor/classify/category.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b17c49fbb8cc4e2a58572c28731636c430b11a111e3f07aeb157d7c968199aa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060get_pairwise_judge_explanation\u0060 returns \u0060\u0027N/A\u0027\u0060 when \u0060KeyError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c39a1d1e76459c4d486cfd64919ac30312cbaeee7ba3946ee05e0b48937b00a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060get_single_judge_explanation\u0060 returns \u0060\u0027N/A\u0027\u0060 when \u0060KeyError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fastchat/llm_judge/common.py"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d8e8bad0d0d18416f893e9d318bbf7ab714c149a9f198a0c178b9fec2af0df"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-444","guid":"8989da48-caaf-a955-b9ef-53767db527d8","name":"Inconsistent Interpretation of HTTP Requests (\u0027HTTP Request Smuggling\u0027)","shortDescription":{"text":"Inconsistent Interpretation of HTTP Requests (\u0027HTTP Request Smuggling\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/444.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":29,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}