AI Slop Code Risk Monitor

facebook/folly

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

An open-source C++ library developed and used at Facebook.

3.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for facebook/folly, a C++ project with 30,553 GitHub stars. SynthScan examined 777,105 lines of code across 2710 source files, recording 2191 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 3.2 (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.

3.2
Adjusted Signal
3.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
30.6K
Stars
C++
Language
777.1K
Lines of Code
2.7K
Files
2.2K
Pattern Hits
2026-10-31
Scan Date
0.02
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 12.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.0/100 · LOW

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

Agent Over-Engineering Ratio 1.5/100 · LOW

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

PR Review Velocity Impact 15.1/100 · LOW

Which changes need focused human review? 2191 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 60MEDIUM 23LOW 2108

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 2191 distinct pattern matches across 19 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 Block1785 hits · 1748 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOW.github/workflows/windows.yml41 with:COMMENT
LOWfolly/Demangle.cpp21COMMENT
LOWfolly/Format-inl.h21#include <array>COMMENT
LOWfolly/ConstructorCallbackList.h21#include <memory>COMMENT
LOWfolly/ConstructorCallbackList.h41// ...COMMENT
LOWfolly/ConstructorCallbackList.h61// Per the example above,COMMENT
LOWfolly/ConcurrentSkipList.h121#include <atomic>COMMENT
LOWfolly/ConcurrentSkipList.h621 }COMMENT
LOWfolly/ExceptionWrapper.h21#include <exception>COMMENT
LOWfolly/ExceptionWrapper.h41COMMENT
LOWfolly/ExceptionWrapper.h61//!COMMENT
LOWfolly/ExceptionWrapper.h81//! LOG(ERROR) << "FAILWHALE!";COMMENT
LOWfolly/ExceptionWrapper.h141 //! \post `*this` contains a copy of `that`, and `that` is unmodifiedCOMMENT
LOWfolly/ExceptionWrapper.h201 void reset();COMMENT
LOWfolly/ExceptionWrapper.h261COMMENT
LOWfolly/ExceptionWrapper.h281 //! assert( ew.with_exception([](std::runtime_error& e){/*...*/}) );COMMENT
LOWfolly/ExceptionWrapper.h301 //! `throw e;`.)COMMENT
LOWfolly/ExceptionWrapper.h321 //! [&](std::exception const& e) {COMMENT
LOWfolly/Singleton.cpp21#include <signal.h>COMMENT
LOWfolly/Singleton.cpp41#include <folly/system/AtFork.h>COMMENT
LOWfolly/Range.h41#include <folly/lang/Exception.h>COMMENT
LOWfolly/Range.h641 // T constructor that takes a type U that is implicitly convertibleCOMMENT
LOWfolly/Traits.h21#include <functional>COMMENT
LOWfolly/Traits.h81constexpr auto operator""_uzic() noexcept {COMMENT
LOWfolly/Traits.h101/// else static_assert(always_false<T>, "Unsupported type");COMMENT
LOWfolly/Traits.h141} // namespace detailCOMMENT
LOWfolly/Traits.h181/// is_bounded_array_vCOMMENT
LOWfolly/Traits.h361///COMMENT
LOWfolly/Traits.h401/// likeCOMMENT
LOWfolly/Traits.h501COMMENT
LOWfolly/Traits.h521/// mimic: std::experimental::detected_or_t, Library Fundamentals TS v2COMMENT
LOWfolly/Traits.h541// is_detectedCOMMENT
LOWfolly/Traits.h1041//COMMENT
LOWfolly/Traits.h1181template <std::size_t I, typename... Ts>COMMENT
LOWfolly/Traits.h1321/// value_pack_size_vCOMMENT
LOWfolly/CppAttributes.h21#pragma onceCOMMENT
LOWfolly/CppAttributes.h81 * call-sites.COMMENT
LOWfolly/CppAttributes.h121#elif FOLLY_HAS_CPP_ATTRIBUTE(msvc::no_unique_address)COMMENT
LOWfolly/CppAttributes.h141 * type-based alias analysis, but are instead assumed to be able to alias anyCOMMENT
LOWfolly/CppAttributes.h161COMMENT
LOWfolly/CppAttributes.h181#define FOLLY_ATTR_GNU_NOCLONE gnu::nocloneCOMMENT
LOWfolly/CppAttributes.h201#define FOLLY_ATTR_CLANG_CORO_AWAIT_ELIDABLECOMMENT
LOWfolly/SocketAddress.h21#include <cstddef>COMMENT
LOWfolly/CMakeLists.txt1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWfolly/Format.cpp181COMMENT
LOWfolly/IPAddress.h21 *COMMENT
LOWfolly/base64.h21#include <string>COMMENT
LOWfolly/base64.h41// (padding symbols are required on decoding)COMMENT
LOWfolly/base64.h61struct base64_decode_error;COMMENT
LOWfolly/ScopeGuard.h321}COMMENT
LOWfolly/ScopeGuard.h341// use_some_resource(resource); // may throw; cleanup will happenCOMMENT
LOWfolly/ScopeGuard.h381//COMMENT
LOWfolly/ScopeGuard.h401 * @def SCOPE_FAILCOMMENT
LOWfolly/ConcurrentBSkipList.h21// key capacity; P is the promotion denominator (see topLevelForKey).COMMENT
LOWfolly/ConcurrentBSkipList.h41#include <atomic>COMMENT
LOWfolly/ProducerConsumerQueue.h21#include <cstdlib>COMMENT
LOWfolly/ProducerConsumerQueue.h41///COMMENT
LOWfolly/ProducerConsumerQueue.h81 // Checks a private, unsynchronized cache of the other side's cursorCOMMENT
LOWfolly/Singleton.h21/// Recommended usage of this class: suppose you have a classCOMMENT
1725 more matches not shown…
Cross-Language Confusion51 hits · 266 pts
SeverityFileLineSnippetContext
HIGH⚡folly/python/test/iobuf.py371 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py380 self.assertEqual(xb.length(), 15)CODE
HIGH⚡folly/python/test/iobuf.py417 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py420 self.assertEqual(xb.length(), 16)CODE
HIGH⚡folly/python/test/iobuf.py424 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py434 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py444 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py448 self.assertEqual(xb.length(), 16)CODE
HIGH⚡folly/python/test/iobuf.py452 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py463 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py466 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py468 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py479 self.assertEqual(xb.length(), 16)CODE
HIGH⚡folly/python/test/iobuf.py483 self.assertEqual(xb.length(), 10)CODE
HIGH⚡folly/python/test/iobuf.py486 self.assertEqual(xb.length(), 4)CODE
HIGH⚡folly/python/test/iobuf.py490 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py493 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py502 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py505 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py508 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py512 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py515 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py525 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py536 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py539 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py541 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py552 self.assertEqual(xb.length(), 16)CODE
HIGH⚡folly/python/test/iobuf.py556 self.assertEqual(xb.length(), 10)CODE
HIGH⚡folly/python/test/iobuf.py559 self.assertEqual(xb.length(), 4)CODE
HIGH⚡folly/python/test/iobuf.py563 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py566 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py575 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py578 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py581 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py585 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py588 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py598 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py609 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py612 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py614 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py616 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py627 self.assertEqual(xb.length(), 16)CODE
HIGH⚡folly/python/test/iobuf.py631 self.assertEqual(xb.length(), 10)CODE
HIGH⚡folly/python/test/iobuf.py634 self.assertEqual(xb.length(), 16)CODE
HIGH⚡folly/python/test/iobuf.py638 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py641 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py643 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py652 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py655 self.assertEqual(xb.length(), 5)CODE
HIGH⚡folly/python/test/iobuf.py657 self.assertEqual(xb.length(), 0)CODE
HIGH⚡folly/python/test/iobuf.py667 self.assertEqual(xb.length(), 0)CODE
Hyper-Verbose Identifiers203 hits · 171 pts
SeverityFileLineSnippetContext
LOWfolly/python/test/test_iobuf_ext.py27 def test_iobuf_should_not_hang_when_outliving_asyncio_loop(self) -> None:CODE
LOWfolly/python/test/test_iobuf_ext.py60 def test_copy_from_buffer_bytes(self) -> None:CODE
LOWfolly/python/test/test_iobuf_ext.py74 def test_copy_from_buffer_bytearray(self) -> None:CODE
LOWfolly/python/test/test_iobuf_ext.py87 def test_copy_from_buffer_memoryview(self) -> None:CODE
LOWfolly/python/test/test_iobuf_ext.py96 def test_copy_from_buffer_does_not_pin_source_object(self) -> None:CODE
LOWfolly/python/test/teardown.py41 def test_fiber_manager_tear_down(self) -> None:CODE
LOWfolly/python/test/coro.py34 async def _return_five_after_cancelled(self) -> int:CODE
LOWfolly/python/test/coro.py90 async def test_executor_stats_blocking(self) -> None:CODE
LOWfolly/python/test/test_set_executor.py28 def test_cannot_override_existing_loop(self):CODE
LOWfolly/python/test/request_context.py88 async def test_multiple_ctx_copies_memory_leak(self) -> None:CODE
LOWfolly/python/test/generator.py33 async def test_iter_generator_empty(self) -> None:CODE
LOWfolly/python/test/generator.py42 async def test_iter_generator_error(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py363 def test_buffer_creation_with_size_write(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py383 def test_buffer_creation_with_size_write_fail(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py415 def test_buffer_creation_with_size_append(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py422 def test_buffer_creation_with_size_append_fail(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py432 def test_buffer_creation_with_size_append_fail_negative(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py442 def test_buffer_creation_with_size_multiple_append(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py450 def test_buffer_creation_with_size_multiple_append_fail(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py461 def test_buffer_creation_with_size_trim_start(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py470 def test_buffer_creation_with_size_write_trim_start(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py488 def test_buffer_creation_with_size_trim_start_fail(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py500 def test_buffer_creation_with_size_trim_start_multiple(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py510 def test_buffer_creation_with_size_trim_start_fail_multiple(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py523 def test_buffer_creation_with_size_trim_start_fail_negative(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py534 def test_buffer_creation_with_size_trim_end(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py543 def test_buffer_creation_with_size_write_trim_end(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py561 def test_buffer_creation_with_size_trim_end_fail(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py573 def test_buffer_creation_with_size_trim_end_multiple(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py583 def test_buffer_creation_with_size_trim_end_fail_multiple(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py596 def test_buffer_creation_with_size_trim_end_fail_negative(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py607 def test_buffer_creation_with_size_prepend(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py618 def test_buffer_creation_with_size_write_prepend(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py636 def test_buffer_creation_with_size_prepend_fail(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py650 def test_buffer_creation_with_size_prepend_fail_multiple(self) -> None:CODE
LOW⚡folly/python/test/iobuf.py665 def test_buffer_creation_with_size_prepend_fail_negative(self) -> None:CODE
LOWfolly/python/test/iobuf.py128 def test_conversion_from_python_to_cpp(self) -> None:CODE
LOWfolly/python/test/iobuf.py139 def test_conversion_from_python_to_cpp_with_wrong_type(self) -> None:CODE
LOWfolly/python/test/iobuf.py206 def test_buffer_update_in_place(self) -> None:CODE
LOWfolly/python/test/iobuf.py212 def test_buffer_write_out_of_bounds(self) -> None:CODE
LOWfolly/python/test/iobuf.py229 def test_buffer_read_out_of_bounds(self) -> None:CODE
LOWfolly/python/test/iobuf.py244 def test_buffer_write_empty_pieces(self) -> None:CODE
LOWfolly/python/test/iobuf.py270 def test_empty_writable_chain(self) -> None:CODE
LOWfolly/python/test/iobuf.py280 def test_appendable_writable_chain(self) -> None:CODE
LOWfolly/python/test/iobuf.py295 def test_appendable_writable_chain_overwrite(self) -> None:CODE
LOWfolly/python/test/iobuf.py321 def test_appendable_writable_chain_coalesce(self) -> None:CODE
LOWfolly/python/test/iobuf.py339 def test_appendable_writable_chain_coalesce_exception(self) -> None:CODE
LOWfolly/python/test/iobuf.py399 def test_buffer_creation_with_size_read_fail(self) -> None:CODE
LOWfolly/fibers/scripts/gdb.py834def fiber_manager_active_fibers(fm):CODE
LOWfolly/fibers/scripts/gdb.py888def get_fiber_manager_map_evb():CODE
LOWfolly/fibers/scripts/gdb.py892def get_fiber_manager_map_vevb():CODE
LOWfolly/agents/tests/test_directory_snapshot.py39 def test_round_trip_preserves_paths_bytes_and_empty_files(self) -> None:CODE
LOWfolly/agents/tests/test_directory_snapshot.py62 def test_rejects_root_and_child_links(self) -> None:CODE
LOWfolly/agents/tests/test_directory_snapshot.py81 def test_rejects_special_files_without_reading_them(self) -> None:CODE
LOWfolly/agents/tests/test_directory_snapshot.py93 def test_write_rejects_paths_outside_destination(self) -> None:CODE
LOWfolly/agents/tests/test_directory_snapshot.py108 def test_write_does_not_change_existing_destinations(self) -> None:CODE
LOW⚡folly/agents/tests/test_debrief_tables.py54 def test_duration_rounding_carries_to_the_next_minute(self) -> None:CODE
LOW⚡folly/agents/tests/test_debrief_tables.py57 def test_total_duration_sums_displayed_values(self) -> None:CODE
LOW⚡folly/agents/tests/test_debrief_tables.py65 def test_renders_production_tables(self) -> None:CODE
LOWfolly/agents/tests/test_debrief_tables.py97 def test_marks_unknown_pricing(self) -> None:CODE
143 more matches not shown…
Verbosity Indicators21 hits · 44 pts
SeverityFileLineSnippetContext
LOW⚡folly/String.cpp557 // Step 1: Clear the high order bit. We'll deal with it in Step 5.COMMENT
LOW⚡folly/String.cpp564 // Step 2: Add 0x25 (37)COMMENT
LOW⚡folly/String.cpp571 // Step 3: clear the high order bitCOMMENT
LOW⚡folly/String.cpp577 // Step 4: Add 0x1a (26)COMMENT
LOW⚡folly/String.cpp586 // Step 5: Shift the high order bit 2 spaces to the right: the spotCOMMENT
LOW⚡folly/String.cpp597 // Step 6: Apply a mask to clear everything except the 0x20 bitCOMMENT
LOW⚡folly/String.cpp603 // Step 7: Add rotated to cCOMMENT
LOW⚡folly/IPAddressV6.cpp170 // Step 1: first 8 bytes are network prefix, and can be strippedCOMMENT
LOW⚡folly/IPAddressV6.cpp171 // Step 2: invert the universal/local (U/L) flag (bit 7)COMMENT
LOW⚡folly/IPAddressV6.cpp173 // Step 3: copy these bytes as they areCOMMENT
LOW⚡folly/IPAddressV6.cpp176 // Step 4: strip bytes (0xfffe), which are bytes_[11] and bytes_[12]COMMENT
LOW⚡folly/IPAddressV6.cpp177 // Step 5: copy the rest.COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1741 // Step 1: skipTo(100) → should return 500 (first non-deleted key >= 100)COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1749 // Step 2: skipTo(200) — target < lastResult. Folly returns 500 (stays put).COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1758 // Step 3: skipTo(300) — still < 500. Same.COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1766 // Step 4: skipTo(600) — past the jump, normal forwardCOMMENT
LOWfolly/algorithm/simd/test/MovemaskTest.cpp119 // Step 1:COMMENT
LOWfolly/algorithm/simd/test/MovemaskTest.cpp128 // Step 2:COMMENT
LOWfolly/compression/Compression.cpp1828 // Step 1:COMMENT
LOWfolly/compression/Compression.cpp1847 // Step 2:COMMENT
LOWfolly/stats/BucketedTimeSeries-inl.h123 // An earlier time in the past. We need to check if this time still fallsCOMMENT
AI Slop Vocabulary15 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMfolly/SharedMutex.h1863// std::shared_lock specialization for folly::SharedMutex to leverage tokenfulCOMMENT
MEDIUMfolly/MPMCQueue.h66/// which is more robust to contention than a CAS loop. Each of theCOMMENT
MEDIUMfolly/result/rich_error_base.h310/// writing rich errors to glog & `std` streams. This ought to be more robustCOMMENT
MEDIUMfolly/memory/Malloc.cpp81 // Absolutely wild, but this apparently needs to be cached within this TU.COMMENT
MEDIUMfolly/memory/Malloc.cpp118 // Absolutely wild, but this apparently needs to be cached within this TU.COMMENT
MEDIUMfolly/hash/detail/RandomSeed.h30// leverage ASLR (Address Space Layout Randomization) [2] to get a per-runCOMMENT
MEDIUMfolly/fibers/scripts/gdb.py251 # than the stack of the currently selected frame. Essentially, we takeCOMMENT
LOW⚡folly/fibers/scripts/gdb.py613# for a cached fiber will just return the same cached FiberInfo.COMMENT
LOWfolly/fibers/scripts/gdb.py792 # almost always 0 (used for frozen options). We'll ignore it and just useCOMMENT
MEDIUMfolly/lang/MustUseImmediately.h32// Essentially, this is a public analog of `folly::detail`. If you use it,COMMENT
MEDIUMfolly/lang/SafeAlias-fwd.h47 // Definitely has aliasing, we know nothing of the lifetime.COMMENT
MEDIUMfolly/detail/RangeSse42.cpp23// Essentially, two versions of this file: one with an SSE42 implementationCOMMENT
MEDIUMfolly/coro/safe/SafeTask.h134// Design note: Fundamentally, the reason that we have `member_task`, andCOMMENT
MEDIUMfolly/coro/safe/test/NowTaskTest.cpp74// expected call-path-to-awaiter. This is pretty robust, so long as I checkCOMMENT
MEDIUM…/coro/safe/detail/DefineMovableDeepConstLrefCopyable.h68// non-copyable, instead of the more nuanced behavior we need. ToCOMMENT
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHfolly/fibers/scripts/gdb.py866except gdb.error:CODE
HIGHfolly/agents/tests/checkpoint_accounting.py110except json.JSONDecodeError:CODE
HIGHfolly/agents/critic-iterate/session_current_model_id.py74except (OSError, ValueError):CODE
HIGHfolly/support/gdb.py53except gdb.error:CODE
HIGHfolly/coro/scripts/co_bt.py641except Exception:CODE
HIGHfolly/coro/scripts/co_bt.py820except Exception:CODE
HIGHfolly/coro/scripts/co_bt.py572except Exception:CODE
HIGHfolly/coro/scripts/co_bt.py700except Exception:CODE
Structural Annotation Overuse17 hits · 38 pts
SeverityFileLineSnippetContext
LOW⚡folly/String.cpp557 // Step 1: Clear the high order bit. We'll deal with it in Step 5.COMMENT
LOW⚡folly/String.cpp564 // Step 2: Add 0x25 (37)COMMENT
LOW⚡folly/String.cpp571 // Step 3: clear the high order bitCOMMENT
LOW⚡folly/String.cpp577 // Step 4: Add 0x1a (26)COMMENT
LOW⚡folly/String.cpp586 // Step 5: Shift the high order bit 2 spaces to the right: the spotCOMMENT
LOW⚡folly/String.cpp597 // Step 6: Apply a mask to clear everything except the 0x20 bitCOMMENT
LOW⚡folly/String.cpp603 // Step 7: Add rotated to cCOMMENT
LOW⚡folly/IPAddressV6.cpp170 // Step 1: first 8 bytes are network prefix, and can be strippedCOMMENT
LOW⚡folly/IPAddressV6.cpp171 // Step 2: invert the universal/local (U/L) flag (bit 7)COMMENT
LOW⚡folly/IPAddressV6.cpp173 // Step 3: copy these bytes as they areCOMMENT
LOW⚡folly/IPAddressV6.cpp176 // Step 4: strip bytes (0xfffe), which are bytes_[11] and bytes_[12]COMMENT
LOW⚡folly/IPAddressV6.cpp177 // Step 5: copy the rest.COMMENT
LOWfolly/futures/Future.h2306/// NOTE: This function is deprecated. Please use makeSemiFuture and pass theCOMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1741 // Step 1: skipTo(100) → should return 500 (first non-deleted key >= 100)COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1749 // Step 2: skipTo(200) — target < lastResult. Folly returns 500 (stays put).COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1758 // Step 3: skipTo(300) — still < 500. Same.COMMENT
LOW⚡folly/test/ConcurrentBSkipListTest.cpp1766 // Step 4: skipTo(600) — past the jump, normal forwardCOMMENT
Fake / Example Data17 hits · 23 pts
SeverityFileLineSnippetContext
LOW⚡folly/test/AsciiCaseInsensitiveBenchmark.cpp27 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam"CODE
LOW⚡folly/test/AsciiCaseInsensitiveBenchmark.cpp27 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam"CODE
LOW⚡folly/test/AsciiCaseInsensitiveBenchmark.cpp33 "tortor. Lorem ipsum dolor sit amet, consectetur adipiscing"CODE
LOW⚡folly/test/AsciiCaseInsensitiveBenchmark.cpp33 "tortor. Lorem ipsum dolor sit amet, consectetur adipiscing"CODE
LOWfolly/test/AsciiCaseInsensitiveBenchmark.cpp63 "tincidunt. Phasellus eget dolor sit amet ipsum dapibus condimentum"CODE
LOW⚡folly/test/ConvTest.cpp475 toAppend("Lorem ipsum ", 1234, String(" dolor amet "), 567.89, '!', &s);CODE
LOW⚡folly/test/ConvTest.cpp476 EXPECT_EQ(s, "Lorem ipsum 1234 dolor amet 567.89!");CODE
LOW⚡folly/test/ConvTest.cpp481 s = to<String>("Lorem ipsum ", nullptr, 1234, " dolor amet ", 567.89, '.');CODE
LOW⚡folly/test/ConvTest.cpp482 EXPECT_EQ(s, "Lorem ipsum 1234 dolor amet 567.89.");CODE
LOW⚡folly/test/ConvTest.cpp501 ":", "Lorem ipsum ", 1234, String(" dolor amet "), 567.89, '!', &s);CODE
LOW⚡folly/test/ConvTest.cpp502 EXPECT_EQ(s, "Lorem ipsum :1234: dolor amet :567.89:!");CODE
LOW⚡folly/test/ConvTest.cpp508 ":", "Lorem ipsum ", nullptr, 1234, " dolor amet ", 567.89, '.');CODE
LOW⚡folly/test/ConvTest.cpp509 EXPECT_EQ(s, "Lorem ipsum ::1234: dolor amet :567.89:.");CODE
LOWfolly/test/FBStringTest.cpp1282Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan \n\CODE
LOWfolly/test/FBStringTest.cpp1282Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan \n\CODE
LOWfolly/io/test/IOBufTest.cpp1327 const char data[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";CODE
LOWfolly/io/test/IOBufTest.cpp1327 const char data[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit";CODE
Unused Imports19 hits · 18 pts
SeverityFileLineSnippetContext
LOWfolly/agents/tests/test_directory_snapshot.py15CODE
LOWfolly/agents/tests/checkpoint.py25CODE
LOWfolly/agents/tests/test_debrief_tables.py15CODE
LOWfolly/agents/tests/test_run_scenario.py15CODE
LOWfolly/agents/tests/checkpoint_accounting.py17CODE
LOWfolly/agents/tests/test_isolated_codex.py15CODE
LOWfolly/agents/tests/test_checkpoint_accounting.py15CODE
LOWfolly/agents/tests/compress_checkpoint_outputs.py76CODE
LOWfolly/agents/tests/run_scenario.py17CODE
LOWfolly/agents/tests/test_compress_checkpoint_outputs.py15CODE
LOWfolly/agents/tests/debrief_tables.py17CODE
LOWfolly/agents/tests/directory_snapshot.py21CODE
LOWfolly/agents/tests/test_isolated_agent.py15CODE
LOWfolly/agents/tests/test_checkpoint.py15CODE
LOWfolly/agents/scripts/isolated_agent.py21CODE
LOWfolly/agents/scripts/isolated_codex.py18CODE
LOWfolly/agents/critic-iterate/codex-reviewer.py18CODE
LOW…lly/agents/critic-iterate/tests/test_codex_reviewer.py16CODE
LOWfolly/json/test/tests/test_float_format_python_json.py17CODE
Excessive Try-Catch Wrapping13 hits · 16 pts
SeverityFileLineSnippetContext
LOWfolly/python/test/request_context.py173 except Exception as e:CODE
LOWfolly/agents/tests/checkpoint.py107 except Exception:CODE
MEDIUMfolly/agents/tests/checkpoint.py81def main() -> None:CODE
LOWfolly/agents/tests/run_scenario.py758 except Exception:CODE
MEDIUM⚡folly/coro/scripts/co_bt.py504 print("Error collecting async stack trace:")CODE
MEDIUMfolly/coro/scripts/co_bt.py564def get_current_pthread_addr() -> DebuggerValue:CODE
MEDIUMfolly/coro/scripts/co_bt.py686def get_current_pthread_addr() -> DebuggerValue:CODE
LOW⚡folly/coro/scripts/co_bt.py503 except Exception:CODE
LOWfolly/coro/scripts/co_bt.py241 except Exception:CODE
LOWfolly/coro/scripts/co_bt.py572 except Exception:STRING
LOWfolly/coro/scripts/co_bt.py641 except Exception:STRING
LOWfolly/coro/scripts/co_bt.py700 except Exception:STRING
LOWfolly/coro/scripts/co_bt.py820 except Exception:STRING
Slop Phrases8 hits · 15 pts
SeverityFileLineSnippetContext
LOWfolly/FBString.h667 // Medium strings are copied eagerly. Don't forget to allocateCOMMENT
LOWfolly/FBString.h720 // Medium strings are allocated normally. Don't forget toCOMMENT
LOWfolly/FBString.h801 // Keep the string at medium size. Don't forget to allocateCOMMENT
LOWfolly/FBString.h834 // Don't forget to allocate one extra Char for the terminating nullCOMMENT
MEDIUMfolly/Format.h358 * so feel free to modify it in place if necessary. (For example, wrap anCOMMENT
LOWfolly/futures/test/FutureTest.cpp1155 // (Don't forget to enable ASAN)COMMENT
MEDIUMfolly/lang/MustUseImmediately.h558// As discussed above, this helps types manage object slicing risk.COMMENT
LOWfolly/container/HeterogeneousAccess.h51// the header that declares T. Don't forget to typedef is_transparent toCOMMENT
Deep Nesting14 hits · 14 pts
SeverityFileLineSnippetContext
LOWfolly/fibers/scripts/gdb.py711CODE
LOWfolly/fibers/scripts/gdb.py759CODE
LOWfolly/agents/tests/test_directory_snapshot.py93CODE
LOWfolly/agents/tests/test_run_scenario.py1218CODE
LOWfolly/agents/tests/test_checkpoint_accounting.py268CODE
LOWfolly/agents/tests/compress_checkpoint_outputs.py184CODE
LOWfolly/agents/tests/directory_snapshot.py30CODE
LOWfolly/agents/critic-iterate/session_current_model_id.py32CODE
LOWfolly/agents/critic-iterate/session_current_model_id.py48CODE
LOWfolly/agents/critic-iterate/session_current_model_id.py87CODE
LOWfolly/support/gdb.py25CODE
LOWfolly/support/gdb.py129CODE
LOWfolly/tool/benchmark_ab.py1327CODE
LOWfolly/tool/tests/test_benchmark_ab.py1037CODE
Self-Referential Comments2 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM⚡folly/fibers/scripts/gdb.py611# This class is responsible for maintaining the name/address:fiberinfo mapping.COMMENT
MEDIUM⚡folly/fibers/scripts/gdb.py612# Creating a FiberInfo object adds it to the cache, and trying to create oneCOMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWfolly/CancellationToken.h141// Example usage:COMMENT
LOWfolly/container/vector_bool.h30/// Usage example:COMMENT
LOWfolly/coro/Baton.h43/// Example usage:COMMENT
LOWfolly/coro/SharedMutex.h83/// Example usage:COMMENT
LOWfolly/coro/AutoCleanup.h45/// Example usage:COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHfolly/io/async/test/AsyncSocketTest2.cpp2124 // Make sure the write attempt timed out as requestedCOMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWfolly/support/gdb.py446 # Check if the segment has been initialized or setp over itCOMMENT
LOWfolly/support/gdb.py460 # Check if we're done with this segmentCOMMENT
LOWfolly/coro/scripts/co_bt.py221 # Check if the tls key is initializedCOMMENT
LOWfolly/coro/scripts/co_bt.py352 # Check if there is an AsyncStackRoot and if so, whether thereCOMMENT
LOWfolly/coro/scripts/co_bt.py370 # Check if there is a higher-level AsyncStackRoot that definesCOMMENT
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt305# =============================================================================COMMENT
MEDIUMCMakeLists.txt309# =============================================================================COMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWfolly/python/test/request_context.py214 async def set_context() -> None:CODE
LOWfolly/agents/tests/test_checkpoint_accounting.py126 def _set_time(path: Path, second: int) -> None:CODE
LOWfolly/agents/tests/run_scenario.py681def _update_metadata(run: Run, **updates: object) -> None:CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWfolly/io/async/AsyncSSLSocket.h389 // TODO: implement graceful shutdown in close()COMMENT
LOWfolly/io/async/AsyncSSLSocket.h390 // TODO: implement detachSSL() that returns the SSL connectionCOMMENT