Repository Analysis

NLog/NLog

NLog - Flexible and Structured Logging for various .NET Platforms

13.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NLog/NLog, a C# project with 6,544 GitHub stars. SynthScan v2.0 examined 157,282 lines of code across 732 source files, recording 1992 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 13.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).

13.8
Adjusted Score
13.8
Raw Score
100%
Time Factor
2026-08-08
Last Push
6.5K
Stars
C#
Language
157.3K
Lines of Code
732
Files
2.0K
Pattern Hits
2026-08-09
Scan Date
0.03
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 19HIGH 2MEDIUM 0LOW 1971

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 1992 distinct pattern matches across 6 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.

Over-Commented Block1964 hits · 1900 pts
SeverityFileLineSnippetContext
LOW…de/src/NLog.SourceCodeTests/Properties/AssemblyInfo.cs21// The following GUID is for the ID of the typelib if this project is exposed to COMCOMMENT
LOWtools/MakeNLogXSD/XsdFileGenerator.cs1//COMMENT
LOWtools/MakeNLogXSD/XsdFileGenerator.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtools/MakeNLogXSD/Program.cs1//COMMENT
LOWtools/MakeNLogXSD/Program.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.Benchmarks/Program.cs1//COMMENT
LOWtests/NLog.Benchmarks/Program.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOW…og.Benchmarks/Targets/ColoredConsoleTargetBenchmark.cs1//COMMENT
LOW…og.Benchmarks/Targets/ColoredConsoleTargetBenchmark.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/SampleExtensions/WhenFooFilter.cs1//COMMENT
LOWtests/SampleExtensions/WhenFooFilter.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/SampleExtensions/FooLayout.cs1//COMMENT
LOWtests/SampleExtensions/FooLayout.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/SampleExtensions/MyConditionMethods.cs1//COMMENT
LOWtests/SampleExtensions/MyConditionMethods.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/SampleExtensions/MyTarget.cs1//COMMENT
LOWtests/SampleExtensions/MyTarget.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/SampleExtensions/FooLayoutRenderer.cs1//COMMENT
LOWtests/SampleExtensions/FooLayoutRenderer.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.RegEx.Tests/RegexReplaceTests.cs1//COMMENT
LOWtests/NLog.RegEx.Tests/RegexReplaceTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.RegEx.Tests/ConditionEvaluatorTests.cs1//COMMENT
LOWtests/NLog.RegEx.Tests/ConditionEvaluatorTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.RegEx.Tests/ColoredConsoleTargetTests.cs1//COMMENT
LOWtests/NLog.RegEx.Tests/ColoredConsoleTargetTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOW…s/NLog.Targets.AtomicFile.Tests/AtomicProcessRunner.cs1//COMMENT
LOW…s/NLog.Targets.AtomicFile.Tests/AtomicProcessRunner.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.Targets.AtomicFile.Tests/AtomicFileTests.cs1//COMMENT
LOWtests/NLog.Targets.AtomicFile.Tests/AtomicFileTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOW…gets.AtomicFile.Tests/AtomicWritesMultiProcessTests.cs1//COMMENT
LOW…gets.AtomicFile.Tests/AtomicWritesMultiProcessTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOW…og.Targets.AtomicFile.Tests/Properties/AssemblyInfo.cs1//COMMENT
LOW…og.Targets.AtomicFile.Tests/Properties/AssemblyInfo.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLogAutoLoadExtension/AutoLoadTarget.cs1//COMMENT
LOWtests/NLogAutoLoadExtension/AutoLoadTarget.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLogAutoLoadExtension/Properties/AssemblyInfo.cs1using System.Reflection;COMMENT
LOWtests/NLog.Targets.GZipFile.Tests/GZipFileTests.cs1//COMMENT
LOWtests/NLog.Targets.GZipFile.Tests/GZipFileTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/LogMessageFormatterTests.cs1//COMMENT
LOWtests/NLog.UnitTests/LogMessageFormatterTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/LogManagerTests.cs1//COMMENT
LOWtests/NLog.UnitTests/LogManagerTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/NLogTestBase.cs1//COMMENT
LOWtests/NLog.UnitTests/NLogTestBase.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/LogLevelTests.cs1//COMMENT
LOWtests/NLog.UnitTests/LogLevelTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/RegressionTests.cs1//COMMENT
LOWtests/NLog.UnitTests/RegressionTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/ConfigFileLocatorTests.cs1//COMMENT
LOWtests/NLog.UnitTests/ConfigFileLocatorTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs1//COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs2421COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs2441COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs2461 // if (enabled == 1) AssertDebugLastMessage("debug", "A|message1");COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs2481 // logger.Error(CultureInfo.InvariantCulture, "message{0}", this);COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs2501COMMENT
LOWtests/NLog.UnitTests/LoggerTests.cs2521 // if (enabled == 1) AssertDebugLastMessage("debug", "A|messageeee2fffggg");COMMENT
LOWtests/NLog.UnitTests/GetLoggerTests.cs1//COMMENT
LOWtests/NLog.UnitTests/GetLoggerTests.cs21// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"COMMENT
1904 more matches not shown…
Hallucination Indicators19 hits · 235 pts
SeverityFileLineSnippetContext
CRITICALtests/NLog.UnitTests/Targets/FileTargetTests.cs4516 logger.Log(new LogEventInfo(LogLevel.Info, null, "789") { TimeStamp = NLog.Time.TimeSource.Current.Time.CODE
CRITICALtests/NLog.UnitTests/Targets/FileTargetTests.cs4517 logger.Log(new LogEventInfo(LogLevel.Info, null, "123") { TimeStamp = NLog.Time.TimeSource.Current.Time.CODE
CRITICALtests/NLog.UnitTests/Targets/FileTargetTests.cs4519 logger.Log(new LogEventInfo(LogLevel.Info, null, "123") { TimeStamp = NLog.Time.TimeSource.Current.Time.CODE
CRITICAL…s/NLog.UnitTests/Conditions/ConditionEvaluatorTests.cs322 var bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();CODE
CRITICAL…s/NLog.UnitTests/Conditions/ConditionEvaluatorTests.cs362 var bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();CODE
CRITICALtests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs469 var task1 = System.Threading.Tasks.Task.Factory.StartNew(() => { throw new Exception("Test exception 1", newCODE
CRITICALtests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs471 var task2 = System.Threading.Tasks.Task.Factory.StartNew(() => { throw new Exception("Test exception 2", newCODE
CRITICALtests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs517 var task1 = System.Threading.Tasks.Task.Factory.StartNew(() =>CODE
CRITICALtests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs527 var task2 = System.Threading.Tasks.Task.Factory.StartNew(() =>CODE
CRITICALtests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs582 var task1 = System.Threading.Tasks.Task.Factory.StartNew(() => { throw new Exception("Test exception 1", newCODE
CRITICALtests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs624 var task1 = System.Threading.Tasks.Task.Factory.StartNew(() =>CODE
CRITICAL…NLog.UnitTests/LayoutRenderers/Wrappers/CachedTests.cs126 var s3 = l.Render(new LogEventInfo() { TimeStamp = NLog.Time.TimeSource.Current.Time.AddMinutes(2) });CODE
CRITICALsrc/NLog/ScopeContext.cs823 System.Runtime.Remoting.Messaging.CallContext.FreeNamedDataSlot(MappedContextDataSlotName);CODE
CRITICALsrc/NLog/ScopeContext.cs825 System.Runtime.Remoting.Messaging.CallContext.LogicalSetData(MappedContextDataSlotName, newValue);CODE
CRITICALsrc/NLog/ScopeContext.cs830 return System.Runtime.Remoting.Messaging.CallContext.LogicalGetData(MappedContextDataSlotName) as DictionaryCODE
CRITICALsrc/NLog/ScopeContext.cs882 System.Runtime.Remoting.Messaging.CallContext.FreeNamedDataSlot(NestedContextDataSlotName);CODE
CRITICALsrc/NLog/ScopeContext.cs884 System.Runtime.Remoting.Messaging.CallContext.LogicalSetData(NestedContextDataSlotName, nestedContext);CODE
CRITICALsrc/NLog/ScopeContext.cs891 return System.Runtime.Remoting.Messaging.CallContext.LogicalGetData(NestedContextDataSlotName) as LinkedListCODE
CRITICAL…og/Targets/FileAppenders/MinimalFileLockingAppender.cs83 if (_nextArchiveTime < NLog.Time.TimeSource.Current.Time.AddMinutes(1) || _lastFileBirthTimeUtc == DateTCODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…API/ASPNetBufferingWrapper/NormalPage.aspx.designer.cs3// This code was generated by a tool.COMMENT
HIGH…PNetBufferingWrapper/PageWithWarnings.aspx.designer.cs3// This code was generated by a tool.COMMENT
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs655 // Step 1: Write event that will fail when timer fires for background-writer.COMMENT
LOWtests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs658 // Step 2: Flush that triggers timer immediately, and because BatchSize=1 then it first writes the failing LCOMMENT
LOWtests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs661 // Step 3: Write next event.COMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs655 // Step 1: Write event that will fail when timer fires for background-writer.COMMENT
LOWtests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs658 // Step 2: Flush that triggers timer immediately, and because BatchSize=1 then it first writes the failing LCOMMENT
LOWtests/NLog.UnitTests/Targets/AsyncTaskTargetTest.cs661 // Step 3: Write next event.COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/NLog.UnitTests/LoggerTests.cs2230 logger.Debug("Process order {" + param1 + "} for {" + param2 + "}", 13424, new { ClientId = 3001, ClientCODE