An powerful enhanced toolkit of MyBatis for simplify development
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …idou/mybatisplus/test/toolkit/TableNameParserTest.java | 0 | create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null u | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null u | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null u | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | create table if not exists `user_info` ( `id` int unsigned auto_increment primary key, `username` varchar(50) not null u | STRING |
| HIGH | …sion/plugins/inner/IllegalSQLInnerInterceptorTest.java | 0 | create table t_demo ( `a` int default null, `b` int default null, `c` int default null, key `ab_index1` (`a`,`b`) ); cre | STRING |
| HIGH | …sion/plugins/inner/IllegalSQLInnerInterceptorTest.java | 0 | create table t_demo ( `a` int default null, `b` int default null, `c` int default null, key `ab_index1` (`a`,`b`) ); cre | STRING |
| HIGH | …sion/plugins/inner/IllegalSQLInnerInterceptorTest.java | 0 | create table t_demo ( `a` int default null, `b` int default null, `c` int default null, key `ab_index1` (`a`,`b`) ); cre | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | create table `tag` ( `id` int(11) not null auto_increment, `name` varchar(50) character set utf8mb4 collate utf8mb4_bin | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | create table `tag` ( `id` int(11) not null auto_increment, `name` varchar(50) character set utf8mb4 collate utf8mb4_bin | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | create table `tag` ( `id` int(11) not null auto_increment, `name` varchar(50) character set utf8mb4 collate utf8mb4_bin | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | -- 查询2023年q2分区数据 select\s region, sum(gross_profit) as 区域总利润, avg(order_value) as 平均订单金额 from\s sales_data partition by\ | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | -- 查询2023年q2分区数据 select\s region, sum(gross_profit) as 区域总利润, avg(order_value) as 平均订单金额 from\s sales_data partition by\ | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | -- 查询2023年q2分区数据 select\s region, sum(gross_profit) as 区域总利润, avg(order_value) as 平均订单金额 from\s sales_data partition by\ | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select\s count(*) as 订单总数, sum(o.order_total) as 总销售额, sum(case when o.status = 'completed' then 1 else 0 end) as 完成订单数 | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select\s count(*) as 订单总数, sum(o.order_total) as 总销售额, sum(case when o.status = 'completed' then 1 else 0 end) as 完成订单数 | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select\s count(*) as 订单总数, sum(o.order_total) as 总销售额, sum(case when o.status = 'completed' then 1 else 0 end) as 完成订单数 | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | delimiter $$ declare\s cur cursor for\s select employee_id from employees where salary < 50000; emp_id int; begin open c | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | delimiter $$ declare\s cur cursor for\s select employee_id from employees where salary < 50000; emp_id int; begin open c | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | delimiter $$ declare\s cur cursor for\s select employee_id from employees where salary < 50000; emp_id int; begin open c | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from employees e join departments d on e.department_id = d.department_id where\s e.last_name like concat('%', : | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from employees e join departments d on e.department_id = d.department_id where\s e.last_name like concat('%', : | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from employees e join departments d on e.department_id = d.department_id where\s e.last_name like concat('%', : | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select\s product_id, product_name, stock_quantity, (select\s sum(ordered_qty)\s from\s purchase_orders po\s where\s po.p | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select\s product_id, product_name, stock_quantity, (select\s sum(ordered_qty)\s from\s purchase_orders po\s where\s po.p | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select\s product_id, product_name, stock_quantity, (select\s sum(ordered_qty)\s from\s purchase_orders po\s where\s po.p | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | with user_activity as ( select\s user_id, event_type, event_time, row_number() over (partition by user_id order by event | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | with user_activity as ( select\s user_id, event_type, event_time, row_number() over (partition by user_id order by event | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | with user_activity as ( select\s user_id, event_type, event_time, row_number() over (partition by user_id order by event | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from [salesdb].[dbo].[orders] join [marketingdb].[dbo].[customers]\s on orders.customerid = customers.customeri | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from [salesdb].[dbo].[orders] join [marketingdb].[dbo].[customers]\s on orders.customerid = customers.customeri | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from [salesdb].[dbo].[orders] join [marketingdb].[dbo].[customers]\s on orders.customerid = customers.customeri | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from ecommerce_orders\s partition (p2022, p2023) where order_date between '2022-01-01' and '2023-12-31'; | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from ecommerce_orders\s partition (p2022, p2023) where order_date between '2022-01-01' and '2023-12-31'; | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select * from ecommerce_orders\s partition (p2022, p2023) where order_date between '2022-01-01' and '2023-12-31'; | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select order_id, customer_id,amount, rank() over (partition by customer_id order by amount desc) as rank from orders; | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select order_id, customer_id,amount, rank() over (partition by customer_id order by amount desc) as rank from orders; | STRING |
| HIGH | …er/DynamicTableNameJsqlParserInnerInterceptorTest.java | 0 | select 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.java | 0 | create 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.java | 0 | create 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.java | 0 | create 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.java | 0 | create 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.java | 0 | create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary | STRING |
| HIGH | …multisqlsessionfactory/MultiSqlSessionFactoryTest.java | 0 | create table if not exists t_entity_b ( id bigint not null auto_increment, name varchar(30) null default null , primary | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …com/baomidou/mybatisplus/core/toolkit/LambdaUtils.java | 93 | return new ShadowLambdaMeta(com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.extract(func) | CODE |
| CRITICAL | …com/baomidou/mybatisplus/core/toolkit/LambdaUtils.java | 118 | return new ShadowLambdaMeta(com.baomidou.mybatisplus.core.toolkit.support.SerializedLambda.extract(func)); | CODE |
| CRITICAL | …va/com/baomidou/mybatisplus/core/toolkit/AopUtils.java | 73 | if (org.springframework.aop.support.AopUtils.isJdkDynamicProxy(proxy)) { | CODE |
| CRITICAL | …va/com/baomidou/mybatisplus/core/toolkit/AopUtils.java | 75 | } else if (org.springframework.aop.support.AopUtils.isCglibProxy(proxy)) { | CODE |
| CRITICAL | …dou/mybatisplus/generator/config/po/TableInfoTest.java | 188 | Assertions.assertTrue(tableInfo.getImportPackages().contains(com.baomidou.mybatisplus.annotation.TableField.clas | CODE |
| CRITICAL⚡ | …plus/generator/DefaultTableFieldAnnotationHandler.java | 77 | annotationAttributesList.add(new AnnotationAttributes(displayName, com.baomidou.mybatisplus.annotati | CODE |
| CRITICAL⚡ | …plus/generator/DefaultTableFieldAnnotationHandler.java | 81 | annotationAttributesList.add(new AnnotationAttributes(displayName, com.baomidou.mybatisplus.annotati | CODE |
| CRITICAL⚡ | …plus/generator/DefaultTableFieldAnnotationHandler.java | 87 | annotationAttributesList.add(new AnnotationAttributes(displayName, com.baomidou.mybatisplus.annotati | CODE |
| CRITICAL | …om/baomidou/mybatisplus/generator/util/ClassUtils.java | 51 | return com.baomidou.mybatisplus.core.toolkit.ClassUtils.toClassConfident(name); | CODE |
| CRITICAL | …aomidou/mybatisplus/generator/config/po/TableInfo.java | 303 | importPackages.add(com.baomidou.mybatisplus.annotation.TableField.class.getCanonicalName()); | CODE |
| CRITICAL | …aomidou/mybatisplus/generator/config/po/TableInfo.java | 307 | importPackages.add(com.baomidou.mybatisplus.annotation.TableField.class.getCanonicalName()); | CODE |
| CRITICAL | …/java/com/baomidou/mybatisplus/test/DdlHelperTest.java | 26 | var dataSource = new UnpooledDataSource(com.mysql.cj.jdbc.Driver.class.getName(), | CODE |
| CRITICAL | …/java/com/baomidou/mybatisplus/test/DdlHelperTest.java | 73 | var dataSource = new UnpooledDataSource(oracle.jdbc.driver.OracleDriver.class.getName(), | CODE |
| CRITICAL | …/java/com/baomidou/mybatisplus/test/DdlHelperTest.java | 123 | var dataSource = new UnpooledDataSource(dm.jdbc.driver.DmDriver.class.getName(), | CODE |
| CRITICAL | …omidou/mybatisplus/spring/spi/SpringCompatibleSet.java | 119 | while (org.springframework.aop.support.AopUtils.isAopProxy(result)) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …in/java/com/baomidou/mybatisplus/aot/FeatureUtils.java | 281 | } | COMMENT |
| LOW | …ou/mybatisplus/test/h2/tenant/CustomCacheExecutor.java | 1 | //package com.baomidou.mybatisplus.test.h2.tenant; | COMMENT |
| LOW | …ou/mybatisplus/test/h2/tenant/CustomCacheExecutor.java | 21 | // | COMMENT |
| LOW | …ou/mybatisplus/test/h2/tenant/CustomCacheExecutor.java | 41 | // return countCacheKey; | COMMENT |
| LOW | …/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java | 1 | //package com.baomidou.mybatisplus.test.h2.tenant; | COMMENT |
| LOW | …/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java | 21 | //import org.springframework.context.annotation.Bean; | COMMENT |
| LOW | …/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java | 41 | // sqlSessionFactory.setDataSource(dataSource); | COMMENT |
| LOW | …/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java | 61 | // public Executor newExecutor(Transaction transaction, ExecutorType executorType) { | COMMENT |
| LOW | …/baomidou/mybatisplus/test/h2/tenant/TenantConfig.java | 81 | // configuration.setDefaultExecutorType(ExecutorType.REUSE); | COMMENT |
| LOW | …om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java | 1 | //package com.baomidou.mybatisplus.test.h2.tenant; | COMMENT |
| LOW | …om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java | 21 | //@TestMethodOrder(MethodOrderer.OrderAnnotation.class) | COMMENT |
| LOW | …om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java | 41 | // } | COMMENT |
| LOW | …om/baomidou/mybatisplus/test/h2/tenant/TenantTest.java | 61 | // list.forEach(student -> student.setName("小红")); | COMMENT |
| LOW | …lus/test/h2/fillperformance/FillPerformanceConfig.java | 61 | setFieldValByName("f", "1234567890", metaObject); | COMMENT |
| LOW | …test/extension/parsers/DynamicTableNameParserTest.java | 1 | //package com.baomidou.mybatisplus.extension.parsers; | COMMENT |
| LOW | …test/extension/parsers/DynamicTableNameParserTest.java | 21 | // (metaObject, sql, tableName) -> { | COMMENT |
| LOW | …test/extension/parsers/DynamicTableNameParserTest.java | 41 | // " (select count(1) from t_user) as cnt\n" + | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …m/baomidou/mybatisplus/test/tenant/TenantManyTest.java | 31 | // ─── Entity classes ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …m/baomidou/mybatisplus/test/tenant/TenantManyTest.java | 51 | // ─── Mapper interfaces ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …m/baomidou/mybatisplus/test/tenant/TenantManyTest.java | 76 | // ─── Test ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …m/baomidou/mybatisplus/test/tenant/TenantManyTest.java | 103 | // ─── Test infrastructure ─────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/gradle.yml | 40 | # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle | COMMENT |