Repository Analysis

alibaba/arthas

Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas

7.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of alibaba/arthas, a Java project with 37,431 GitHub stars. SynthScan v2.0 examined 192,377 lines of code across 1425 source files, recording 140 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 7.8 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

7.8
Adjusted Score
7.8
Raw Score
100%
Time Factor
2026-07-01
Last Push
37.4K
Stars
Java
Language
192.4K
Lines of Code
1.4K
Files
140
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 108HIGH 0MEDIUM 0LOW 32

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 140 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hallucination Indicators108 hits · 1460 pts
SeverityFileLineSnippetContext
CRITICALREADME.md119 at com.taobao.arthas.core.command.handler.AbstractCommandHandler.execute(AbstractCommandHandler.java:238)CODE
CRITICALREADME.md120 at com.taobao.arthas.core.command.handler.DefaultCommandHandler.handleCommand(DefaultCommandHandler.java:67)CODE
CRITICALREADME.md276 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)CODE
CRITICALREADME.md277 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)CODE
CRITICALREADME.md278 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)CODE
CRITICALREADME.md279 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)CODE
CRITICALREADME.md280 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)CODE
CRITICALREADME.md281 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)CODE
CRITICALREADME.md282 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)CODE
CRITICALREADME.md283 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)CODE
CRITICALREADME.md284 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)CODE
CRITICALREADME.md286 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)CODE
CRITICALREADME.md287 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)CODE
CRITICALREADME.md288 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)CODE
CRITICALREADME.md289 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:451)CODE
CRITICALREADME.md290 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1121)CODE
CRITICALREADME_CN.md108 at com.taobao.arthas.core.command.handler.AbstractCommandHandler.execute(AbstractCommandHandler.java:238)CODE
CRITICALREADME_CN.md109 at com.taobao.arthas.core.command.handler.DefaultCommandHandler.handleCommand(DefaultCommandHandler.java:67)CODE
CRITICALREADME_CN.md261 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)CODE
CRITICALREADME_CN.md262 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)CODE
CRITICALREADME_CN.md263 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)CODE
CRITICALREADME_CN.md264 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)CODE
CRITICALREADME_CN.md265 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)CODE
CRITICALREADME_CN.md266 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)CODE
CRITICALREADME_CN.md267 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)CODE
CRITICALREADME_CN.md268 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)CODE
CRITICALREADME_CN.md269 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)CODE
CRITICALREADME_CN.md271 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)CODE
CRITICALREADME_CN.md272 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)CODE
CRITICALREADME_CN.md273 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)CODE
CRITICALREADME_CN.md274 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:451)CODE
CRITICALREADME_CN.md275 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1121)CODE
CRITICAL…n/resources/native-agent/static/js/console-35a3b78f.js58}`)),this.register((0,c.toDisposable)(()=>v.deleteProgram(this._program))),this._projectionLocation=(0,o.throwIfFalsy)(vCODE
CRITICAL…aobao/arthas/grpcweb/grpc/service/advisor/SpyImpl.java35 List<AdviceListener> listeners = com.taobao.arthas.grpcweb.grpc.service.advisor.AdviceListenerManager.queryAdvicCODE
CRITICAL…aobao/arthas/grpcweb/grpc/service/advisor/SpyImpl.java60 List<AdviceListener> listeners = com.taobao.arthas.grpcweb.grpc.service.advisor.AdviceListenerManager.queryAdvicCODE
CRITICAL…aobao/arthas/grpcweb/grpc/service/advisor/SpyImpl.java84 List<AdviceListener> listeners = com.taobao.arthas.grpcweb.grpc.service.advisor.AdviceListenerManager.queryAdvicCODE
CRITICAL…aobao/arthas/grpcweb/grpc/service/advisor/SpyImpl.java108 List<AdviceListener> listeners = com.taobao.arthas.grpcweb.grpc.service.advisor.AdviceListenerManager.queryTraceCODE
CRITICAL…aobao/arthas/grpcweb/grpc/service/advisor/SpyImpl.java133 List<AdviceListener> listeners = com.taobao.arthas.grpcweb.grpc.service.advisor.AdviceListenerManager.queryTraceCODE
CRITICAL…aobao/arthas/grpcweb/grpc/service/advisor/SpyImpl.java160 List<AdviceListener> listeners = com.taobao.arthas.grpcweb.grpc.service.advisor.AdviceListenerManager.queryTraceCODE
CRITICAL…bao/arthas/core/advisor/AdviceListenerManagerTest.java27 Assertions.assertThatCode(new org.assertj.core.api.ThrowableAssert.ThrowingCallable() {CODE
CRITICAL…bao/arthas/core/advisor/AdviceListenerManagerTest.java58 Assertions.assertThatCode(new org.assertj.core.api.ThrowableAssert.ThrowingCallable() {CODE
CRITICAL…/main/java/com/taobao/arthas/core/util/ThreadUtil.java370 * com.taobao.arthas.core.util.ThreadUtil.getThreadStack(ThreadUtil.java:349),COMMENT
CRITICAL…/main/java/com/taobao/arthas/core/util/ThreadUtil.java371 * com.taobao.arthas.core.command.monitor200.StackAdviceListener.before(StackAdviceListener.java:33),COMMENT
CRITICAL…/main/java/com/taobao/arthas/core/util/ThreadUtil.java372 * com.taobao.arthas.core.advisor.AdviceListenerAdapter.before(AdviceListenerAdapter.java:49),COMMENT
CRITICAL…/main/java/com/taobao/arthas/core/util/ThreadUtil.java373 * com.taobao.arthas.core.advisor.SpyImpl.atEnter(SpyImpl.java:42),COMMENT
CRITICAL…c/main/java/com/taobao/arthas/core/util/FileUtils.java214 com.taobao.arthas.common.IOUtils.close(in);CODE
CRITICAL…ain/java/com/taobao/arthas/core/util/ArthasBanner.java149 version[0] = com.taobao.arthas.common.IOUtils.toString(inputStream).trim();CODE
CRITICAL…/main/java/com/taobao/arthas/core/util/Decompiler.java76 * @see org.benf.cfr.reader.util.MiscConstants.Version.getVersion() Currently,COMMENT
CRITICAL…bao/arthas/core/shell/term/impl/CompletionAdaptor.java58 completion.complete(io.termd.core.util.Helper.toCodePoints(strToComplete), false);CODE
CRITICAL…bao/arthas/core/shell/term/impl/CompletionAdaptor.java67 suggestions.add(io.termd.core.util.Helper.toCodePoints(candidate));CODE
CRITICAL…bao/arthas/core/shell/term/impl/CompletionAdaptor.java77 completion.complete(io.termd.core.util.Helper.toCodePoints(value), terminal);CODE
CRITICAL…a/com/taobao/arthas/core/shell/term/impl/TermImpl.java48 this(com.taobao.arthas.core.shell.term.impl.Helper.loadKeymap(), conn);CODE
CRITICAL…bao/arthas/core/shell/term/impl/CompletionHandler.java32 final String line = io.termd.core.util.Helper.fromCodePoints(completion.line());CODE
CRITICAL…/com/taobao/arthas/core/shell/cli/CompletionUtils.java35 return Helper.fromCodePoints(io.termd.core.readline.Completion.findLongestCommonPrefix(entries));CODE
CRITICAL…n/java/com/taobao/arthas/core/mcp/ArthasMcpServer.java108 com.taobao.arthas.core.mcp.util.McpObjectVOFilter.register();CODE
CRITICAL…core/command/klass100/ClassLoaderMetaspaceCommand.java47@com.taobao.middleware.cli.annotations.Name("classloader-metaspace")CODE
CRITICALsite/docs/doc/thread.md50 at com.taobao.arthas.core.command.monitor200.ThreadCommand.processTopBusyThreads(ThreadCommand.java:199)CODE
CRITICALsite/docs/doc/thread.md51 at com.taobao.arthas.core.command.monitor200.ThreadCommand.process(ThreadCommand.java:122)CODE
CRITICALsite/docs/doc/thread.md52 at com.taobao.arthas.core.shell.command.impl.AnnotatedCommandImpl.process(AnnotatedCommandImpl.java:82)CODE
CRITICALsite/docs/doc/thread.md113 at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)CODE
48 more matches not shown…
Hyper-Verbose Identifiers14 hits · 14 pts
SeverityFileLineSnippetContext
LOW…a/arthas/nat/agent/server/http/HttpRequestHandler.java16public class HttpRequestHandler extends SimpleChannelInboundHandler<FullHttpRequest> {CODE
LOW…ent/management/web/server/http/HttpRequestHandler.java18public class HttpRequestHandler extends SimpleChannelInboundHandler<FullHttpRequest> {CODE
LOW…has/nat/agent/proxy/server/handler/RequestHandler.java17public class RequestHandler extends SimpleChannelInboundHandler<Object> {CODE
LOW…gent/proxy/server/handler/http/HttpRequestHandler.java15public class HttpRequestHandler {CODE
LOW…at/agent/proxy/server/handler/ws/WsRequestHandler.java29public class WsRequestHandler {CODE
LOW…nat/agent/common/handler/HttpOptionRequestHandler.java12public class HttpOptionRequestHandler {CODE
LOW…taobao/arthas/grpcweb/proxy/GrpcWebRequestHandler.java38public class GrpcWebRequestHandler {CODE
LOW…thas/core/shell/term/impl/http/HttpRequestHandler.java32public class HttpRequestHandler extends SimpleChannelInboundHandler<FullHttpRequest> {CODE
LOW…ao/arthas/core/shell/handlers/term/RequestHandler.java10public class RequestHandler implements Consumer<String> {CODE
LOW…col/server/handler/McpStatelessHttpRequestHandler.java34public class McpStatelessHttpRequestHandler {CODE
LOW…ol/server/handler/McpStreamableHttpRequestHandler.java46public class McpStreamableHttpRequestHandler {CODE
LOW…ver/protocol/server/handler/McpHttpRequestHandler.java25public class McpHttpRequestHandler {CODE
LOW…ion-test/telnet-stop-leak/run_telnet_stop_leak_test.py81def parse_arthas_classloader_instances(jmap_histo_output: str) -> Tuple[int, Optional[str]]:CODE
LOW…ion-test/telnet-stop-leak/run_telnet_stop_leak_test.py111def wait_for_telnet_port_from_arthas_log(arthas_log: Path, start_offset: int, timeout_seconds: int) -> int:CODE
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOW…/taobao/arthas/grpc/server/handler/GrpcDispatcher.java81 MethodHandle requestToByteArray = lookup.findVirtual(requestClass, "toByteArray", MethodTypeCOMMENT
LOW…o/arthas/grpcweb/grpc/view/GrpcResultViewResolver.java41// registerView(CatView.class);COMMENT
LOW…o/arthas/grpcweb/grpc/view/GrpcResultViewResolver.java61// registerView(SearchClassView.class);COMMENT
LOW…va/com/taobao/arthas/core/util/reflect/FieldUtils.java301 public static Field getField(final Class<?> cls, final String fieldName, final boolean forceAccess) {COMMENT
LOW…ava/com/taobao/arthas/core/shell/term/impl/Helper.java61// URL resource = HttpTermServer.class.getResource(path);COMMENT
LOW…m/taobao/arthas/core/command/logger/AsmRenameUtil.java21 final String internalNewName = newName.replace('.', '/');COMMENT
LOWbin/as.sh1#!/usr/bin/env bashCOMMENT
LOWbin/as.sh21# is printed.COMMENT
LOW…rthasWebConsole/all/ui/ui/src/views/sync/ClassInfo.vue101 if (k === "classloader") res += JSON.stringify(v)COMMENT
LOWarthas-vmtool/src/main/native/src/heap_analyzer.c21#define HEAP_TAG_RUN_SHIFT 32COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql-analysis.yml41 - name: Initialize CodeQLCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsite/docs/en/doc/batch-support.md8### Step 1: Create the scriptCOMMENT
LOWsite/docs/en/doc/batch-support.md28### Step 2: Run the scriptCOMMENT
LOWsite/docs/en/doc/batch-support.md42### Step 3: Check the outputCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbin/as.sh917 # if ps do not support -p or -o , ${pid} will be error message, just returnCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…/taobao/arthas/core/util/matcher/RegexMatcherTest.java65 Assert.assertTrue(new RegexMatcher(emailAddressPattern).matching("foo@bar.com"));CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ion-test/telnet-stop-leak/run_telnet_stop_leak_test.py139CODE