AI Slop Code Risk Monitor

lballabio/QuantLib

SlopCodeMonitor badge for lballabio/QuantLib Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The QuantLib C++ library

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lballabio/QuantLib, a C++ project with 7,729 GitHub stars. SynthScan examined 516,110 lines of code across 2776 source files, recording 574 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
7.7K
Stars
C++
Language
516.1K
Lines of Code
2.8K
Files
574
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 573 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 0.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 2 finding(s).

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 574 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1MEDIUM 5LOW 568

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 574 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block566 hits · 558 pts
SeverityFileLineSnippetContext
LOW.codecov.yml21# cd buildCOMMENT
LOW.ci/userconfig2022.alt.hpp41# define QL_ERROR_LINESCOMMENT
LOW.ci/userconfig2022.alt.hpp101 cause segmentation faults. */COMMENT
LOW.ci/userconfig2026.alt.hpp41# define QL_ERROR_LINESCOMMENT
LOW.ci/userconfig2026.alt.hpp101 cause segmentation faults. */COMMENT
LOW.ci/userconfig2019.alt.hpp41# define QL_ERROR_LINESCOMMENT
LOW.ci/userconfig2019.alt.hpp101 cause segmentation faults. */COMMENT
LOWExamples/Gaussian1dModels/Gaussian1dModels.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/GlobalOptimizer/GlobalOptimizer.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/CallableBonds/CallableBonds.cpp21 engine and compares to Bloomberg's Hull White price/yield calculations.COMMENT
LOWExamples/Bonds/Bonds.cpp21 some simple bonds. The last part is dedicated to periphericalCOMMENT
LOWExamples/AsianOption/AsianOption.cpp21 available in QuantLib, including:COMMENT
LOWExamples/DiscreteHedging/DiscreteHedging.cpp41 discrete rather than continuous intervals, the hedge is imperfect and theCOMMENT
LOWExamples/CVAIRS/CVAIRS.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/EquityOption/EquityOption.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/LatentModel/LatentModel.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/BermudanSwaption/BermudanSwaption.cpp21COMMENT
LOWExamples/CDS/CDS.cpp21#include <ql/qldefines.hpp>COMMENT
LOWExamples/CDS/CDS.cpp381 -std::log(1.0-pd)/t << std::endl;COMMENT
LOWExamples/CDS/CDS.cpp401 // Handle<DefaultProbabilityTermStructure> isdaCts = isdaPricer->isdaCreditCurve();COMMENT
LOWExamples/MultidimIntegral/MultidimIntegral.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/Replication/Replication.cpp21 is used to build a static replication of a down-and-out barrierCOMMENT
LOWExamples/FittedBondCurve/FittedBondCurve.cpp21/* This example shows how to fit a term structure to a set of bondsCOMMENT
LOWExamples/MarketModels/MarketModels.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/MarketModels/MarketModels.cpp41#include <ql/models/marketmodels/callability/collectnodedata.hpp>COMMENT
LOW…es/MulticurveBootstrapping/MulticurveBootstrapping.cpp41#include <ql/pricingengines/swap/discountingswapengine.hpp>COMMENT
LOWExamples/BasketLosses/BasketLosses.cpp21#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)COMMENT
LOWExamples/ConvertibleBonds/ConvertibleBonds.cpp21#include <ql/qldefines.hpp>COMMENT
LOW.github/workflows/codeql-analysis.yml41 # 📚 https://git.io/JvXDlCOMMENT
LOW.github/workflows/cmake-latest-runners.yml21COMMENT
LOWtest-suite/marketmodel_cms.cpp21*/COMMENT
LOWtest-suite/vpp.cpp21#include "utilities.hpp"COMMENT
LOWtest-suite/vpp.cpp41#include <ql/methods/finitedifferences/meshers/exponentialjump1dmesher.hpp>COMMENT
LOWtest-suite/overnightindexedswap.cpp21*/COMMENT
LOWtest-suite/overnightindexedswap.cpp41#include <ql/indexes/ibor/fedfunds.hpp>COMMENT
LOWtest-suite/indexes.cpp21#include "utilities.hpp"COMMENT
LOWtest-suite/swaptionvolstructuresutilities.hpp21*/COMMENT
LOWtest-suite/swapforwardmappings.cpp21#include "toplevelfixture.hpp"COMMENT
LOWtest-suite/swapforwardmappings.cpp161 engine.multiplePathValues(*stats, paths_);COMMENT
LOWtest-suite/swapforwardmappings.cpp281COMMENT
LOWtest-suite/swapforwardmappings.cpp301// MultiStepCoterminalSwaptions productCOMMENT
LOWtest-suite/swapforwardmappings.cpp321// numberOfFactors,COMMENT
LOWtest-suite/swapforwardmappings.cpp341// for (Size i=0; i<nbRates; ++i) {COMMENT
LOWtest-suite/fdheston.cpp21#include "toplevelfixture.hpp"COMMENT
LOWtest-suite/copulas.cpp21#include "utilities.hpp"COMMENT
LOWtest-suite/gaussianquadratures.cpp21#include "utilities.hpp"COMMENT
LOWtest-suite/gaussianquadratures.cpp181BOOST_AUTO_TEST_CASE(testLaguerreLargeOrder) {COMMENT
LOWtest-suite/hybridhestonhullwhiteprocess.cpp21#include "utilities.hpp"COMMENT
LOWtest-suite/hybridhestonhullwhiteprocess.cpp41#include <ql/pricingengines/vanilla/fdhestonhullwhitevanillaengine.hpp>COMMENT
LOWtest-suite/optimizers.cpp21 FOR A PARTICULAR PURPOSE. See the license for more details.COMMENT
LOWtest-suite/variancegamma.cpp21#include "toplevelfixture.hpp"COMMENT
LOWtest-suite/crosscurrencyratehelpers.cpp21#include "toplevelfixture.hpp"COMMENT
LOWtest-suite/marketmodel_smmcapletalphacalibration.cpp21*/COMMENT
LOWtest-suite/marketmodel_smmcapletalphacalibration.cpp41#include <ql/models/marketmodels/evolvers/lognormalfwdratepc.hpp>COMMENT
LOWtest-suite/marketmodel_smmcapletalphacalibration.cpp361 for (Size i=1; i<rateTimes_.size(); ++i)COMMENT
LOWtest-suite/cashflows.cpp21#include "preconditions.hpp"COMMENT
LOWtest-suite/marketmodel.cpp21ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSCOMMENT
LOWtest-suite/marketmodel.cpp41#include <ql/models/marketmodels/evolvers/lognormalfwdrateeulerconstrained.hpp>COMMENT
LOWtest-suite/marketmodel.cpp61#include <ql/models/marketmodels/products/multistep/multistepswap.hpp>COMMENT
LOWtest-suite/marketmodel.cpp81#include <ql/math/statistics/convergencestatistics.hpp>COMMENT
506 more matches not shown…
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtest-suite/hestonslvmodel.cpp590// // this includes a calibration of the leverage function!COMMENT
MEDIUMtest-suite/hestonslvmodel.cpp2670// // Create SLV pricing engines with both leverage functionsCOMMENT
MEDIUMql/pricingengines/blackformula.cpp417 // it is numerically more robust for implied vol calculationsCOMMENT
MEDIUMql/models/equity/hestonslvfdmmodel.hpp62 // do not calculate leverage function if prob is smaller than epsCOMMENT
MEDIUMql/models/equity/hestonslvmcmodel.cpp178 // The conditional variance and leverage slice are both at the end of the step.COMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtools/check_header.py50except FileNotFoundError:CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/check_filelists_diffs.py37CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/check_test_times.py51def parse_simple_auto_generated(t: ET.Element) -> Optional[TestName]:CODE