AI Slop Code Risk Monitor

davisking/dlib

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

A toolkit for making real world machine learning and data analysis applications in C++

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for davisking/dlib, a C++ project with 14,469 GitHub stars. SynthScan examined 722,390 lines of code across 1896 source files, recording 1098 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 1.7 (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.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-21
Last Push
14.5K
Stars
C++
Language
722.4K
Lines of Code
1.9K
Files
1.1K
Pattern Hits
2026-10-31
Scan Date
0.01
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 8.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.3/100 · LOW

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

PR Review Velocity Impact 8.0/100 · LOW

Which changes need focused human review? 1098 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 10MEDIUM 25LOW 1063

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 1098 distinct pattern matches across 13 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 Block1004 hits · 1000 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt21 # whatever you are building rather than create a standalone copy of dlib.COMMENT
LOWtools/python/src/face_recognition.cpp1// Copyright (C) 2017 Davis E. King (davis@dlib.net)COMMENT
LOWtools/python/src/dlib.cpp41{COMMENT
LOWtools/python/src/dlib.cpp61 m.attr("DLIB_USE_CUDA") = false;COMMENT
LOWtools/python/src/simple_object_detector.h1// Copyright (C) 2014 Davis E. King (davis@dlib.net)COMMENT
LOWtools/python/src/object_detection.cpp1// Copyright (C) 2015 Davis E. King (davis@dlib.net)COMMENT
LOWtools/python/src/opaque_types.h1// Copyright (C) 2017 Davis E. King (davis@dlib.net)COMMENT
LOW…ts_to_caffe/running_a_dlib_model_with_caffe_example.py1#!/usr/bin/env pythonCOMMENT
LOWtools/imglab/src/flip_dataset.cpp1// Copyright (C) 2011 Davis E. King (davis@dlib.net)COMMENT
LOWtools/imglab/src/convert_pascal_xml.h1// Copyright (C) 2011 Davis E. King (davis@dlib.net)COMMENT
LOWtools/imglab/src/metadata_editor.cpp1// Copyright (C) 2011 Davis E. King (davis@dlib.net)COMMENT
LOWtools/imglab/src/cluster.cpp1// Copyright (C) 2015 Davis E. King (davis@dlib.net)COMMENT
LOWtools/imglab/src/main.cpp1COMMENT
LOWtools/htmlify/to_xml.cpp1COMMENT
LOWdocs/docs/python/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/docs/python/conf.py41# The encoding of source files.COMMENT
LOWdocs/docs/python/conf.py61# for a list of supported languages.COMMENT
LOWdocs/docs/python/conf.py81# unit titles (such as .. function::).COMMENT
LOWdocs/docs/python/conf.py101# Theme options are theme-specific and customize the look and feel of a themeCOMMENT
LOWdocs/docs/python/conf.py121# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32COMMENT
LOWdocs/docs/python/conf.py141}COMMENT
LOWdocs/docs/python/conf.py161COMMENT
LOWdocs/docs/python/conf.py201# For "manual" documents, if this is true, then toplevel headings are parts,COMMENT
LOWexamples/kcentroid_ex.cpp41COMMENT
LOWexamples/dnn_dcgan_train_ex.cpp201 // This part is the essence of the Generative Adversarial Networks. Until now, we haveCOMMENT
LOWexamples/svr_ex.cpp81 // -0.189201 -0.187636COMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp101 std::vector<std::vector<mmod_rect>> boxes_train, boxes_test;COMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp121 // that are heavily overlapped by another box as ignore. We do this because we want toCOMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp141 // Importantly, this means that if your training dataset contains an image with twoCOMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp181COMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp221 // Our vehicle detection dataset has basically 3 different types of boxes. SquareCOMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp241 mmod_options options(boxes_train, 70, 30);COMMENT
LOWexamples/dnn_mmod_train_find_cars_ex.cpp261 // detection overlaps a box in the training data with ignore==true then that detectionCOMMENT
LOWexamples/bayes_net_gui_ex.cpp141COMMENT
LOWexamples/CMakeLists.txt1#COMMENT
LOWexamples/CMakeLists.txt21# / ____/ __ \| \/ | \/ | ____| \ | |__ __/ ____| | | | | |COMMENT
LOWexamples/CMakeLists.txt41# into your project. Note that you don't need to compile or install dlib. AllCOMMENT
LOWexamples/CMakeLists.txt61# file, assignment_learning_ex.cpp. If your program consisted of multiple .cppCOMMENT
LOWexamples/CMakeLists.txt81# if instead you had written:COMMENT
LOWexamples/kkmeans_ex.cpp41 // results without much fiddling.COMMENT
LOWexamples/rvm_regression_ex.cpp41COMMENT
LOWexamples/compress_stream_ex.cpp61 // In the code below, we use the parser.print_options() method to print all ourCOMMENT
LOWexamples/compress_stream_ex.cpp81 // that shouldn't appear more than once and then I just call check_one_time_options()COMMENT
LOWexamples/dnn_introduction2_ex.cpp21COMMENT
LOWexamples/dnn_introduction2_ex.cpp241 layer<tag1>(pnet);COMMENT
LOWexamples/dnn_introduction2_ex.cpp261 // momentum parameters. COMMENT
LOWexamples/dnn_introduction2_ex.cpp301 auto idx = rnd.get_random_32bit_number()%training_images.size();COMMENT
LOWexamples/bsp_ex.cpp121COMMENT
LOWexamples/bsp_ex.cpp161{COMMENT
LOWexamples/bsp_ex.cpp181COMMENT
LOWexamples/bsp_ex.cpp221}COMMENT
LOWexamples/bsp_ex.cpp241 // terminate. That is, we know it is time to terminate if all the messages betweenCOMMENT
LOWexamples/dnn_mmod_find_cars_ex.cpp81COMMENT
LOWexamples/svm_pegasos_ex.cpp41 // This is a typedef for the type of kernel we are going to use in this example.COMMENT
LOWexamples/svm_pegasos_ex.cpp121 // with the pegasos algorithm. But it is often the case that you have a dataset and you COMMENT
LOWexamples/model_selection_ex.cpp81 // binary SVM with the RBF kernel to classify the data. However, there areCOMMENT
LOWexamples/object_detector_ex.cpp181 // the feature vectors output by the hashed_feature_image will have dimension pow(2,10).COMMENT
LOWexamples/object_detector_ex.cpp201 // the details into the scanner object we are ready to use the structural_object_detection_trainerCOMMENT
LOWexamples/krls_filter_ex.cpp41 typedef radial_basis_kernel<sample_type> kernel_type;COMMENT
LOWexamples/gui_api_ex.cpp221// would see a black console window pop up when you ran it. The followingCOMMENT
944 more matches not shown…
AI Response Leakage9 hits · 68 pts
SeverityFileLineSnippetContext
HIGHdlib/global_optimization/find_max_global.h49 // So we write the terrible garbage in the #else for visual studio. When Visual Studio supports C++11 I'll updaCOMMENT
HIGHpython_examples/sequence_segmenter.py134# sparse or dense representation depending on our needs. In this example, weCOMMENT
HIGHpython_examples/svm_binary_classifier.py6# the dlib C++ Library. In this example, we will create a simple test datasetCOMMENT
HIGHpython_examples/face_clustering.py7# In this example, we assume the largest cluster will contain photos of the common person in theCOMMENT
HIGHpython_examples/svm_rank.py10# In this example, we will create a simple test dataset and show how to learn aCOMMENT
HIGHpython_examples/svm_struct.py35 # In this example, we have three types of samples: class 0, 1, or 2. ThatCOMMENT
HIGHpython_examples/train_object_detector.py34# In this example we are going to train a face detector based on the smallCOMMENT
HIGHpython_examples/train_object_detector.py127# In this example we load detector.svm again since it's the only one we have onCOMMENT
HIGHpython_examples/train_shape_predictor.py42# In this example we are going to train a face detector based on the smallCOMMENT
Slop Phrases21 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMdocs/docs/index.xml174 <li>A simple <a href="network.html#server_http">HTTP server</a> object you can use to embed aCODE
MEDIUMdocs/docs/linear_algebra.xml1346 <a href="#point">point</a>. Note that you can use <a href="#find_affine_transform">find_affine_transform</aCODE
MEDIUMdocs/docs/linear_algebra.xml1429 <a href="#point">point</a>. Note that you can use <a href="#find_projective_transform">find_projective_tranCODE
MEDIUMexamples/matrix_expressions_ex.cpp176 As discussed above, constructing this object doesn't compute anything. It justCODE
LOWdlib/xml_parser/xml_parser_kernel_1.h578 // don't forget to rethrow the exceptionCOMMENT
LOWdlib/optimization/elastic_net.h204 // Do the base dot product but don't forget to add in the -(1/t)*y part from the svm reduction paperCOMMENT
LOWdlib/optimization/optimization_solve_qp_using_smo.h698 // Don't forget to include the Q_offdiag terms in the computation. Note thatCOMMENT
LOWdlib/optimization/optimization.h266 // Don't forget to negate these outputs from the line search since they areCOMMENT
LOWdlib/optimization/optimization.h668 // Don't forget to negate the output from the line search since it is from theCOMMENT
LOWdlib/random_forest/random_forest_regression.h478 // Add to leaves. Don't forget to set the pointer in theCOMMENT
LOWdlib/random_forest/random_forest_regression.h502 // Add to leaves. Don't forget to set the pointer in theCOMMENT
MEDIUMdlib/svm/roc_trainer_abstract.h83 as discussed above, and finally returns the decision function.CODE
LOWdlib/svm/feature_ranking.h331 // we are doing the optimization in log space so don't forget to convert back to normal spaceCOMMENT
LOWdlib/gui_core/gui_core_kernel_2.h12#error "Also make sure you have libx11-dev installed on your system"COMMENT
LOWdlib/control/mpc.h356 // If this is the last SMO iteration then don't forget to initialize vCOMMENT
MEDIUMpython_examples/sequence_segmenter.py63# you can use "unsorted" sparse vectors. This means you can add the index/valueCOMMENT
MEDIUMpython_examples/sequence_segmenter.py133# convert them into arrays of vectors as discussed above. We can use either aCOMMENT
MEDIUMpython_examples/svm_rank.py133# you can use the dlib.make_sparse_vector() routine to make a sparse vectorCOMMENT
MEDIUM⚡python_examples/svm_struct.py241 # Create a dense vector object (note that you can also use unsortedCOMMENT
MEDIUMpython_examples/train_object_detector.py4# This example program shows how you can use dlib to make a HOG based objectCOMMENT
MEDIUMpython_examples/train_object_detector.py73# own XML files you can use the imglab tool which can be found in theCOMMENT
Hyper-Verbose Identifiers30 hits · 34 pts
SeverityFileLineSnippetContext
LOWsetup.py244def read_version_from_cmakelists(cmake_file):STRING
LOWtools/python/test/test_numpy_returns.py90def test_jitter_image_from_multiple_threads():CODE
LOWtools/python/test/test_setup.py20def test_windows_extension_matches_python_architecture(CODE
LOW⚡tools/python/test/test_array.py15def test_array_init_with_number():CODE
LOW⚡tools/python/test/test_array.py23def test_array_init_with_negative_number():CODE
LOW⚡tools/python/test/test_array.py28def test_array_init_with_zero():CODE
LOW⚡tools/python/test/test_array.py33def test_array_init_with_list():CODE
LOW⚡tools/python/test/test_array.py41def test_array_init_with_empty_list():CODE
LOW⚡tools/python/test/test_array.py46def test_array_init_without_argument():CODE
LOW⚡tools/python/test/test_array.py51def test_array_init_with_tuple():CODE
LOW⚡tools/python/test/test_array.py58def test_array_serialization_empty():CODE
LOWtools/python/test/test_array.py83def test_array_string_representations_empty():CODE
LOWtools/python/test/test_array.py89def test_array_string_representations():CODE
LOWtools/python/test/test_global_optimization.py7def test_global_optimization_nargs():CODE
LOWtools/python/test/test_global_optimization.py33def test_global_function_search():CODE
LOWtools/python/test/test_matrix.py43def test_matrix_from_list_with_invalid_rows():CODE
LOWtools/python/test/test_matrix.py50def test_matrix_from_list_as_column_vector():CODE
LOWtools/python/test/test_matrix.py80def test_matrix_from_object_without_shape():CODE
LOWtools/python/test/test_vector.py17def test_vector_init_with_number():CODE
LOWtools/python/test/test_vector.py39def test_vector_init_with_list():CODE
LOWtools/python/test/test_vector.py72def test_vector_invalid_getitem():CODE
LOWtools/python/test/test_vector.py80def test_vector_init_with_negative_number():CODE
LOWtools/python/test/test_vector.py94def test_vector_serialization():CODE
LOWtools/python/test/test_vector.py119def test_vectors_serialization():CODE
LOWtools/python/test/test_vector.py146def test_vectorss_serialization():CODE
LOWtools/python/test/test_range.py34def test_range_with_negative_elements():CODE
LOWtools/python/test/test_chinese_whispers.py20def test_chinese_whispers_with_distance():CODE
LOWtools/python/test/test_chinese_whispers.py41def test_chinese_whispers_type_checks():CODE
LOWpython_examples/sequence_segmenter.py66def sentence_to_sparse_vectors(sentence):CODE
LOWpython_examples/svm_struct.py270 def get_truth_joint_feature_vector(self, idx):CODE
AI Slop Vocabulary12 hits · 30 pts
SeverityFileLineSnippetContext
LOWsetup.py226 # When building on travis-ci, just use 2 cores since travis-ci limitsSTRING
MEDIUMexamples/dnn_mmod_train_find_cars_ex.cpp126 // the detector works. Essentially, sliding window detectors scan all image locationsCOMMENT
MEDIUMexamples/dnn_mmod_train_find_cars_ex.cpp295 // do that. Essentially, we are setting the first argument to infinity, and only theCOMMENT
MEDIUMexamples/linear_manifold_regularizer_ex.cpp219 // of times with different randomly chosen points so we can see how robust the result is.COMMENT
MEDIUMdlib/test/linear_manifold_regularizer.cpp182 // of times with different randomly chosen points so we can see how robust the result is.COMMENT
MEDIUMdlib/timer/timer.cpp43 // there is no (safe/robust)solution, but best practices are described hereCOMMENT
MEDIUMdlib/dnn/trainer.h829 // values in previous_loss_values then we are robust to that kindCOMMENT
LOW⚡python_examples/svm_struct.py245 # would simply return a dlib.sparse_vector at the end of make_psi() andCOMMENT
LOWpython_examples/train_object_detector.py76# file. But for this example, we just use the training.xml file included withCOMMENT
MEDIUMpython_examples/train_shape_predictor.py88# face landmarking datasets you will obtain state-of-the-art results, as shownCOMMENT
MEDIUMpython_examples/face_recognition.py13# comparable to other state-of-the-art methods for face recognition as ofCOMMENT
LOWpython_examples/face_recognition.py131 # Now we simply pass this chip (aligned image) to the apiCOMMENT
Self-Referential Comments4 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMdocs/docs/python/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMpython_examples/sequence_segmenter.py44 # Create an empty array of vectorsCOMMENT
MEDIUM⚡python_examples/svm_struct.py241 # Create a dense vector object (note that you can also use unsortedCOMMENT
MEDIUMpython_examples/correlation_tracker.py43# Create the correlation tracker - the object needs to be initializedCOMMENT
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/python/test/test_numpy_returns.py2CODE
LOWtools/python/test/test_svm_c_trainer.py1CODE
LOWdocs/docs/python/generate_dlib_listing.py1CODE
LOWdlib/external/pybind11/tools/libsize.py1CODE
LOWdlib/external/pybind11/tools/make_changelog.py7CODE
LOWdlib/external/pybind11/tools/make_global.py6CODE
LOW…l/pybind11/tools/codespell_ignore_lines_from_errors.py12CODE
LOWpython_examples/opencv_webcam_face_detection.py38CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdlib/external/pybind11/include/pybind11/detail/class.h662 // Fill in all the information, and then downgrade as requested by the caller, or raise anCOMMENT
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdlib/logger/logger_config_file.h53 # -----------------------------------------------COMMENT
MEDIUMdlib/logger/logger_config_file.h55 # -----------------------------------------------COMMENT
Redundant / Tautological Comments2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ts_to_caffe/running_a_dlib_model_with_caffe_example.py70# Print outputs, looping over minibatch. You should see that the networkCOMMENT
LOW⚡python_examples/svm_struct.py248 # Set it to have 9 dimensions. Note that the elements of the vectorCOMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsetup.py48CODE
LOW…l/pybind11/tools/codespell_ignore_lines_from_errors.py17CODE
Verbosity Indicators2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdlib/svm/linearly_independent_subset_finder_abstract.h296 - The purpose of this function is to fill lisf with points from samples. It doesCODE
LOWdlib/matrix/matrix_abstract.h637 The purpose of this function is to enable you to easily initialize a matrix object.CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdlib/external/pybind11/tools/libsize.py7# Usage:COMMENT