Repository Analysis

yhirose/cpp-httplib

A C++ header-only HTTP/HTTPS server and client library

5.6 Low AI signal View on GitHub
5.6
Adjusted Score
5.6
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,532
Stars
C++
Language
71,967
Lines of Code
228
Files
367
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 37LOW 330

Pattern Findings

367 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block327 hits · 284 pts
SeverityFileLineSnippet
LOWhttplib.h1//
LOWhttplib.h21/*
LOWhttplib.h41#ifndef CPPHTTPLIB_CONNECTION_TIMEOUT_USECOND
LOWhttplib.h61#ifndef CPPHTTPLIB_CLIENT_READ_TIMEOUT_SECOND
LOWhttplib.h81#ifndef CPPHTTPLIB_EXPECT_100_THRESHOLD
LOWhttplib.h101#ifndef CPPHTTPLIB_IDLE_INTERVAL_USECOND
LOWhttplib.h121#ifndef CPPHTTPLIB_REDIRECT_MAX_COUNT
LOWhttplib.h141#ifndef CPPHTTPLIB_TCP_NODELAY
LOWhttplib.h161#ifndef CPPHTTPLIB_THREAD_POOL_COUNT
LOWhttplib.h181#define CPPHTTPLIB_SEND_FLAGS 0
LOWhttplib.h201#define CPPHTTPLIB_WEBSOCKET_CLOSE_TIMEOUT_SECOND 5
LOWhttplib.h221#ifndef _CRT_NONSTDC_NO_DEPRECATE
LOWhttplib.h241
LOWhttplib.h261
LOWhttplib.h281#endif
LOWhttplib.h301#endif
LOWhttplib.h321#include <fstream>
LOWhttplib.h341// On macOS with a TLS backend, enable Keychain root certificates by default
LOWhttplib.h361#endif
LOWhttplib.h381
LOWhttplib.h401#include <openssl/evp.h>
LOWhttplib.h421#endif // CPPHTTPLIB_OPENSSL_SUPPORT
LOWhttplib.h441#endif // _WIN32
LOWhttplib.h461#ifndef WOLFSSL_GEN_EMAIL
LOWhttplib.h481#ifdef _MSC_VER
LOWhttplib.h13561 // platforms surface write errors (EPIPE) earlier; on Windows kernel send
LOWbenchmark/crow/crow_all.h961#endif
LOWbenchmark/crow/crow_all.h981#include <boost/asio.hpp>
LOWbenchmark/crow/crow_all.h1321};
LOWbenchmark/crow/crow_all.h1401#include <string>
LOWbenchmark/crow/crow_all.h6241#undef CROW_CALLBACK_NOTIFY
LOWbenchmark/crow/crow_all.h6261#undef CROW_IS_MARK
LOWbenchmark/crow/crow_all.h6281#endif
LOWbenchmark/crow/crow_all.h7381 if (base.back() != '\\' && base.back() != '/') { base += '/'; }
LOWbenchmark/crow/crow_all.h7401 utility::sanitize_filename(filename_sanitized);
LOWbenchmark/crow/crow_all.h8001 return string.substr(1, string.length() - 2);
LOWbenchmark/crow/crow_all.h8421// Any middleware requires following 3 members:
LOWbenchmark/crow/crow_all.h8701#include <memory>
LOWbenchmark/crow/crow_all.h9581
LOWbenchmark/crow/crow_all.h10061
LOWbenchmark/crow/crow_all.h10461//
LOWbenchmark/crow/crow_all.h12481 void get_found_bp(const std::vector<size_t> &bp_i,
LOWbenchmark/crow/crow_all.h13041#include <chrono>
LOWtest/run_issue_2431_repro.sh1#!/usr/bin/env bash
LOWtest/fuzzing/standalone_fuzz_target_runner.cpp1// Copyright 2017 Google Inc. All Rights Reserved.
LOWtest/gtest/include/gtest/gtest-matchers.h1// Copyright 2007, Google Inc.
LOWtest/gtest/include/gtest/gtest-matchers.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
LOWtest/gtest/include/gtest/gtest-matchers.h41
LOWtest/gtest/include/gtest/gtest-matchers.h61 clients of class B */
LOWtest/gtest/include/gtest/gtest-matchers.h141 // Returns true if and only if the matcher matches x; also explains the
LOWtest/gtest/include/gtest/gtest-matchers.h161 // size is when the match fails, as it's redundant to say that the
LOWtest/gtest/include/gtest/gtest-matchers.h641// polymorphic matcher (i.e. a matcher that can match values of more
LOWtest/gtest/include/gtest/gtest-matchers.h701 return Matcher<T>(impl);
LOWtest/gtest/include/gtest/gtest-matchers.h901template <typename T>
LOWtest/gtest/include/gtest/gtest-death-test.h1// Copyright 2005, Google Inc.
LOWtest/gtest/include/gtest/gtest-death-test.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
LOWtest/gtest/include/gtest/gtest-death-test.h41#define GOOGLETEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_
LOWtest/gtest/include/gtest/gtest-death-test.h61// tests. IMPORTANT: This is an internal utility. Using it may break the
LOWtest/gtest/include/gtest/gtest-death-test.h81//
LOWtest/gtest/include/gtest/gtest-death-test.h101//
267 more matches not shown…
Decorative Section Separators30 hits · 94 pts
SeverityFileLineSnippet
MEDIUMdocs-util/llm-app/test_book.sh4# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh9# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh24# ---------------------------------------------------------------------------
MEDIUMdocs-util/llm-app/test_book.sh26# ---------------------------------------------------------------------------
MEDIUMdocs-util/llm-app/test_book.sh40# ---------------------------------------------------------------------------
MEDIUMdocs-util/llm-app/test_book.sh42# ---------------------------------------------------------------------------
MEDIUMdocs-util/llm-app/test_book.sh157# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh159# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh216# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh218# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh282# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh284# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh338# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh340# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh451# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh453# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh539# =============================================================================
MEDIUMdocs-util/llm-app/test_book.sh541# =============================================================================
MEDIUMdocs-util/llm-app/test_webui.cpp13// ─── Test framework (minimal) ────────────────────────────────
MEDIUMdocs-util/llm-app/test_webui.cpp58// ─── Helpers ─────────────────────────────────────────────────
MEDIUMdocs-util/llm-app/test_webui.cpp262// ─── Main ────────────────────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h24// ─── Errors ──────────────────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h31// ─── Forward declarations ────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h35// ─── Element ─────────────────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h107// ─── Session ─────────────────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h163 // ─── Navigation ──────────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h187 // ─── Find elements ──────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h221 // ─── Wait ────────────────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h252 // ─── Execute script ─────────────────────────────────────
MEDIUMdocs-util/llm-app/webdriver.h267 // ─── Page source ────────────────────────────────────────
AI Slop Vocabulary7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMhttplib.h13282 // Cross-host/scheme redirect - create new client with robust setup
MEDIUMhttplib.h13287// New method for robust redirect client creation
MEDIUMhttplib.h13348 // Setup client with robust configuration
MEDIUMhttplib.h13356// New method for robust client setup (based on basic_manual_redirect.cpp
MEDIUMtest/gtest/include/gtest/gtest-death-test.h152// This implementation is *not* meant to be as highly tuned or robust
MEDIUMtest/gtest/include/gtest/gtest-death-test.h224// In practice, this can be used to test functions that utilize the
MEDIUM.github/workflows/test.yaml291 # Bound the whole job in case anything in the test harness hangs
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippet
LOWsplit.py12
LOWgenerate_module.py10
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWtest/run_issue_2431_repro.sh16# Usage: