Repository Analysis

baomidou/mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of baomidou/mybatis-plus, a Java project with 17,412 GitHub stars. SynthScan v2.0 examined 105,564 lines of code across 1082 source files, recording 80 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 3.9 places this repository in the Likely human-written 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).

3.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-07-09
Last Push
17.4K
Stars
Java
Language
105.6K
Lines of Code
1.1K
Files
80
Pattern Hits
2026-07-14
Scan Date
0.05
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 15HIGH 43MEDIUM 5LOW 17

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 80 distinct pattern matches across 5 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.

Cross-File Repetition43 hits · 215 pts
SeverityFileLineSnippetContext
HIGH…idou/mybatisplus/test/toolkit/TableNameParserTest.java0create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null uSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null uSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null uSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null uSTRING
HIGH…sion/plugins/inner/IllegalSQLInnerInterceptorTest.java0create table t_demo ( `a` int default null, `b` int default null, `c` int default null, key `ab_index1` (`a`,`b`) ); creSTRING
HIGH…sion/plugins/inner/IllegalSQLInnerInterceptorTest.java0create table t_demo ( `a` int default null, `b` int default null, `c` int default null, key `ab_index1` (`a`,`b`) ); creSTRING
HIGH…sion/plugins/inner/IllegalSQLInnerInterceptorTest.java0create table t_demo ( `a` int default null, `b` int default null, `c` int default null, key `ab_index1` (`a`,`b`) ); creSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0create table `tag` ( `id` int(11) not null auto_increment, `name` varchar(50) character set utf8mb4 collate utf8mb4_bin STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0create table `tag` ( `id` int(11) not null auto_increment, `name` varchar(50) character set utf8mb4 collate utf8mb4_bin STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0create table `tag` ( `id` int(11) not null auto_increment, `name` varchar(50) character set utf8mb4 collate utf8mb4_bin STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0-- 查询2023年q2分区数据 select\s region, sum(gross_profit) as 区域总利润, avg(order_value) as 平均订单金额 from\s sales_data partition by\STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0-- 查询2023年q2分区数据 select\s region, sum(gross_profit) as 区域总利润, avg(order_value) as 平均订单金额 from\s sales_data partition by\STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0-- 查询2023年q2分区数据 select\s region, sum(gross_profit) as 区域总利润, avg(order_value) as 平均订单金额 from\s sales_data partition by\STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select\s count(*) as 订单总数, sum(o.order_total) as 总销售额, sum(case when o.status = 'completed' then 1 else 0 end) as 完成订单数 STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select\s count(*) as 订单总数, sum(o.order_total) as 总销售额, sum(case when o.status = 'completed' then 1 else 0 end) as 完成订单数 STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select\s count(*) as 订单总数, sum(o.order_total) as 总销售额, sum(case when o.status = 'completed' then 1 else 0 end) as 完成订单数 STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0delimiter $$ declare\s cur cursor for\s select employee_id from employees where salary < 50000; emp_id int; begin open cSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0delimiter $$ declare\s cur cursor for\s select employee_id from employees where salary < 50000; emp_id int; begin open cSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0delimiter $$ declare\s cur cursor for\s select employee_id from employees where salary < 50000; emp_id int; begin open cSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from employees e join departments d on e.department_id = d.department_id where\s e.last_name like concat('%', :STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from employees e join departments d on e.department_id = d.department_id where\s e.last_name like concat('%', :STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from employees e join departments d on e.department_id = d.department_id where\s e.last_name like concat('%', :STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select\s product_id, product_name, stock_quantity, (select\s sum(ordered_qty)\s from\s purchase_orders po\s where\s po.pSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select\s product_id, product_name, stock_quantity, (select\s sum(ordered_qty)\s from\s purchase_orders po\s where\s po.pSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select\s product_id, product_name, stock_quantity, (select\s sum(ordered_qty)\s from\s purchase_orders po\s where\s po.pSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0with user_activity as ( select\s user_id, event_type, event_time, row_number() over (partition by user_id order by eventSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0with user_activity as ( select\s user_id, event_type, event_time, row_number() over (partition by user_id order by eventSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0with user_activity as ( select\s user_id, event_type, event_time, row_number() over (partition by user_id order by eventSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from [salesdb].[dbo].[orders] join [marketingdb].[dbo].[customers]\s on orders.customerid = customers.customeriSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from [salesdb].[dbo].[orders] join [marketingdb].[dbo].[customers]\s on orders.customerid = customers.customeriSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from [salesdb].[dbo].[orders] join [marketingdb].[dbo].[customers]\s on orders.customerid = customers.customeriSTRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from ecommerce_orders\s partition (p2022, p2023) where order_date between '2022-01-01' and '2023-12-31';STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from ecommerce_orders\s partition (p2022, p2023) where order_date between '2022-01-01' and '2023-12-31';STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select * from ecommerce_orders\s partition (p2022, p2023) where order_date between '2022-01-01' and '2023-12-31';STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select order_id, customer_id,amount, rank() over (partition by customer_id order by amount desc) as rank from orders;STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select order_id, customer_id,amount, rank() over (partition by customer_id order by amount desc) as rank from orders;STRING
HIGH…er/DynamicTableNameJsqlParserInnerInterceptorTest.java0select order_id, customer_id,amount, rank() over (partition by customer_id order by amount desc) as rank from orders;STRING
HIGH…idou/mybatisplus/test/h2/issues/aop/SingleAopTest.java0create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary STRING
HIGH…baomidou/mybatisplus/test/h2/issues/aop/NoAopTest.java0create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary STRING
HIGH…midou/mybatisplus/test/h2/issues/aop/MultiAopTest.java0create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary STRING
HIGH…h2/issues/repositoryscan/RepositoryMapperScanTest.java0create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary STRING
HIGH…2/issues/repositoryscan/RepositoryDefaultScanTest.java0create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary STRING
HIGH…multisqlsessionfactory/MultiSqlSessionFactoryTest.java0create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary STRING
Hallucination Indicators15 hits · 165 pts
SeverityFileLineSnippetContext
CRITICAL…com/baomidou/mybatisplus/core/toolkit/LambdaUtils.java93 return new ShadowLambdaMeta(com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.extract(func)CODE
CRITICAL…com/baomidou/mybatisplus/core/toolkit/LambdaUtils.java118 return new ShadowLambdaMeta(com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.extract(func));CODE
CRITICAL…va/com/baomidou/mybatisplus/core/toolkit/AopUtils.java73 if (org.springframework.aop.support.AopUtils.isJdkDynamicProxy(proxy)) {CODE
CRITICAL…va/com/baomidou/mybatisplus/core/toolkit/AopUtils.java75 } else if (org.springframework.aop.support.AopUtils.isCglibProxy(proxy)) {CODE
CRITICAL…dou/mybatisplus/generator/config/po/TableInfoTest.java188 Assertions.assertTrue(tableInfo.getImportPackages().contains(com.baomidou.mybatisplus.annotation.TableField.clasCODE
CRITICAL…plus/generator/DefaultTableFieldAnnotationHandler.java77 annotationAttributesList.add(new AnnotationAttributes(displayName, com.baomidou.mybatisplus.annotatiCODE
CRITICAL…plus/generator/DefaultTableFieldAnnotationHandler.java81 annotationAttributesList.add(new AnnotationAttributes(displayName, com.baomidou.mybatisplus.annotatiCODE
CRITICAL…plus/generator/DefaultTableFieldAnnotationHandler.java87 annotationAttributesList.add(new AnnotationAttributes(displayName, com.baomidou.mybatisplus.annotatiCODE
CRITICAL…om/baomidou/mybatisplus/generator/util/ClassUtils.java51 return com.baomidou.mybatisplus.core.toolkit.ClassUtils.toClassConfident(name);CODE
CRITICAL…aomidou/mybatisplus/generator/config/po/TableInfo.java303 importPackages.add(com.baomidou.mybatisplus.annotation.TableField.class.getCanonicalName());CODE
CRITICAL…aomidou/mybatisplus/generator/config/po/TableInfo.java307 importPackages.add(com.baomidou.mybatisplus.annotation.TableField.class.getCanonicalName());CODE
CRITICAL…/java/com/baomidou/mybatisplus/test/DdlHelperTest.java26 var dataSource = new UnpooledDataSource(com.mysql.cj.jdbc.Driver.class.getName(),CODE
CRITICAL…/java/com/baomidou/mybatisplus/test/DdlHelperTest.java73 var dataSource = new UnpooledDataSource(oracle.jdbc.driver.OracleDriver.class.getName(),CODE
CRITICAL…/java/com/baomidou/mybatisplus/test/DdlHelperTest.java123 var dataSource = new UnpooledDataSource(dm.jdbc.driver.DmDriver.class.getName(),CODE
CRITICAL…omidou/mybatisplus/spring/spi/SpringCompatibleSet.java119 while (org.springframework.aop.support.AopUtils.isAopProxy(result)) {CODE
Over-Commented Block17 hits · 17 pts
SeverityFileLineSnippetContext
LOW…in/java/com/baomidou/mybatisplus/aot/FeatureUtils.java281 }COMMENT
LOW…ou/mybatisplus/test/h2/tenant/CustomCacheExecutor.java1//package com.baomidou.mybatisplus.test.h2.tenant;COMMENT
LOW…ou/mybatisplus/test/h2/tenant/CustomCacheExecutor.java21//COMMENT
LOW…ou/mybatisplus/test/h2/tenant/CustomCacheExecutor.java41// return countCacheKey;COMMENT
LOW…/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java1//package com.baomidou.mybatisplus.test.h2.tenant;COMMENT
LOW…/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java21//import org.springframework.context.annotation.Bean;COMMENT
LOW…/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java41// sqlSessionFactory.setDataSource(dataSource);COMMENT
LOW…/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java61// public Executor newExecutor(Transaction transaction, ExecutorType executorType) {COMMENT
LOW…/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java81// configuration.setDefaultExecutorType(ExecutorType.REUSE);COMMENT
LOW…om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java1//package com.baomidou.mybatisplus.test.h2.tenant;COMMENT
LOW…om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java21//@TestMethodOrder(MethodOrderer.OrderAnnotation.class)COMMENT
LOW…om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java41// }COMMENT
LOW…om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java61// list.forEach(student -> student.setName("小红"));COMMENT
LOW…lus/test/h2/fillperformance/FillPerformanceConfig.java61 setFieldValByName("f", "1234567890", metaObject);COMMENT
LOW…test/extension/parsers/DynamicTableNameParserTest.java1//package com.baomidou.mybatisplus.extension.parsers;COMMENT
LOW…test/extension/parsers/DynamicTableNameParserTest.java21// (metaObject, sql, tableName) -> {COMMENT
LOW…test/extension/parsers/DynamicTableNameParserTest.java41// " (select count(1) from t_user) as cnt\n" +COMMENT
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…m/baomidou/mybatisplus/test/tenant/TenantManyTest.java31 // ─── Entity classes ────────────────────────────────────────────────────────COMMENT
MEDIUM…m/baomidou/mybatisplus/test/tenant/TenantManyTest.java51 // ─── Mapper interfaces ─────────────────────────────────────────────────────COMMENT
MEDIUM…m/baomidou/mybatisplus/test/tenant/TenantManyTest.java76 // ─── Test ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…m/baomidou/mybatisplus/test/tenant/TenantManyTest.java103 // ─── Test infrastructure ───────────────────────────────────────────────────COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/gradle.yml40 # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run GradleCOMMENT