Dapper - a simple object mapper for .Net
This report presents the forensic synthetic code analysis of DapperLib/Dapper, a C# project with 18,348 GitHub stars. SynthScan v2.0 examined 28,592 lines of code across 192 source files, recording 130 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 4.2 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 130 distinct pattern matches across 3 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 |
|---|---|---|---|---|
| LOW | benchmarks/Dapper.Tests.Performance/LegacyTests.cs | 421 | // { | COMMENT |
| LOW | Dapper.ProviderTools/BulkCopy.cs | 81 | COMMENT | |
| LOW | Dapper.ProviderTools/BulkCopy.cs | 101 | [System.Diagnostics.CodeAnalysis.SuppressMessage("ApiDesign", "RS0026:Do not add multiple public overloads with | COMMENT |
| LOW | Dapper.ProviderTools/BulkCopy.cs | 121 | /// <summary> | COMMENT |
| LOW | .github/workflows/cla.yml | 21 | uses: contributor-assistant/github-action@v2.3.0 | COMMENT |
| LOW | .github/workflows/cla.yml | 41 | #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assista | COMMENT |
| LOW | Dapper.Rainbow/Database.cs | 361 | /// <param name="sql">The SQL to execute.</param> | COMMENT |
| LOW | Dapper.Rainbow/Database.cs | 381 | /// </summary> | COMMENT |
| LOW | Dapper.Rainbow/Database.cs | 401 | /// <typeparam name="TSecond">The second type in the recordset.</typeparam> | COMMENT |
| LOW | Dapper.Rainbow/Database.cs | 421 | /// <typeparam name="TThird">The third type in the recordset.</typeparam> | COMMENT |
| LOW | Dapper.Rainbow/Database.cs | 441 | /// <typeparam name="TThird">The third type in the recordset.</typeparam> | COMMENT |
| LOW | Dapper.Rainbow/Database.cs | 461 | /// <param name="buffered">Whether the results should be buffered in memory.</param> | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 61 | /// <summary> | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 81 | database.QueryAsync<T>("select * from " + TableName); | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 101 | _connection.QueryAsync<T>(sql, param as object, Transaction, _commandTimeout); | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 121 | /// <param name="map">The function to map row types to the return type.</param> | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 141 | /// <param name="param">The parameters to use for this query.</param> | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 161 | /// <param name="param">The parameters to use for this query.</param> | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 181 | /// <param name="map">The function to map row types to the return type.</param> | COMMENT |
| LOW | Dapper.Rainbow/Database.Async.cs | 201 | /// Execute a command that returns multiple result sets, and access each in turn. | COMMENT |
| LOW | Dapper/SqlMapper.Identity.cs | 141 | } | COMMENT |
| LOW | Dapper/SqlMapper.Identity.cs | 161 | #pragma warning restore CS0618 // Type or member is obsolete | COMMENT |
| LOW | Dapper/SqlMapper.Identity.cs | 181 | [Obsolete("Please use " + nameof(GetHashCode) + ". This API may be removed at a later date.")] | COMMENT |
| LOW | Dapper/SqlMapper.Identity.cs | 221 | /// </summary> | COMMENT |
| LOW | Dapper/SqlMapper.Identity.cs | 241 | /// <summary> | COMMENT |
| LOW | Dapper/DynamicParameters.cs | 321 | COMMENT | |
| LOW | Dapper/SqlMapper.cs | 341 | /// Configure the specified type to be processed by a custom handler. | COMMENT |
| LOW | Dapper/SqlMapper.cs | 561 | } | COMMENT |
| LOW | Dapper/SqlMapper.cs | 581 | public static object? ExecuteScalar(this IDbConnection cnn, string sql, object? param = null, IDbTransaction? tr | COMMENT |
| LOW | Dapper/SqlMapper.cs | 601 | return ExecuteScalarImpl<T>(cnn, ref command); | COMMENT |
| LOW | Dapper/SqlMapper.cs | 701 | /// <returns>An <see cref="IDataReader"/> that can be used to iterate over the results of the SQL query.</return | COMMENT |
| LOW | Dapper/SqlMapper.cs | 721 | return DbWrappedReader.Create(dbcmd, reader); | COMMENT |
| LOW | Dapper/SqlMapper.cs | 741 | /// Execute parameterized SQL and return an <see cref="IDataReader"/>. | COMMENT |
| LOW | Dapper/SqlMapper.cs | 761 | /// <param name="sql">The SQL to execute for the query.</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 781 | /// <remarks>Note: the row can be accessed via "dynamic", or by casting to an IDictionary<string,object></ | COMMENT |
| LOW | Dapper/SqlMapper.cs | 801 | /// Return a dynamic object with properties matching the columns. | COMMENT |
| LOW | Dapper/SqlMapper.cs | 821 | /// <param name="commandTimeout">The command timeout (in seconds).</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 841 | /// created per row, and a direct column-name===member-name mapping is assumed (case insensitive). | COMMENT |
| LOW | Dapper/SqlMapper.cs | 861 | /// <returns> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 881 | /// <param name="commandType">The type of command to execute.</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 901 | /// <param name="commandTimeout">The command timeout (in seconds).</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 921 | /// <param name="transaction">The transaction to use, if any.</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 941 | /// <param name="param">The parameters to pass, if any.</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 961 | /// Executes a single-row query, returning the data typed as <paramref name="type"/>. | COMMENT |
| LOW | Dapper/SqlMapper.cs | 981 | } | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1001 | if (type is null) throw new ArgumentNullException(nameof(type)); | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1021 | [System.Diagnostics.CodeAnalysis.SuppressMessage("ApiDesign", "RS0026:Do not add multiple public overloads with | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1041 | /// A sequence of data of the supplied type; if a basic type (int, string, etc) is queried then the data from th | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1061 | /// </returns> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1081 | /// <summary> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1101 | /// A single instance of the supplied type; if a basic type (int, string, etc) is queried then the data from the | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1121 | /// Execute a command that returns multiple result sets, and access each in turn. | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1401 | catch (Exception ex) | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1421 | /// <param name="param">The parameters to use for this query.</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1441 | /// <param name="sql">The SQL to execute for this query.</param> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1461 | /// <typeparam name="TFourth">The fourth type in the recordset.</typeparam> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1481 | /// <typeparam name="TFirst">The first type in the recordset.</typeparam> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1501 | /// <summary> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1521 | /// <returns>An enumerable of <typeparamref name="TReturn"/>.</returns> | COMMENT |
| LOW | Dapper/SqlMapper.cs | 1541 | /// <param name="param">The parameters to use for this query.</param> | COMMENT |
| 67 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …per.Tests.Performance/Linq2Sql/DataClasses.designer.cs | 5 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Dapper.Rainbow/readme.md | 69 | var newUser = new User { Name = "John Doe", Email = "john.doe@example.com" }; | CODE |
| LOW | Dapper.Rainbow/readme.md | 112 | var newUser = new User { Name = "Jane Doe", Email = "jane.doe@example.com" }; | CODE |