An open-source C++ library developed and used at Facebook.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 2078 finding(s).
Are imports declared and package/API names verified? 87 finding(s).
Are wrappers, guards, and repeated structures necessary? 229 finding(s).
Which changes need focused human review? 2191 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | .github/workflows/windows.yml | 41 | with: | COMMENT |
| LOW | folly/Demangle.cpp | 21 | COMMENT | |
| LOW | folly/Format-inl.h | 21 | #include <array> | COMMENT |
| LOW | folly/ConstructorCallbackList.h | 21 | #include <memory> | COMMENT |
| LOW | folly/ConstructorCallbackList.h | 41 | // ... | COMMENT |
| LOW | folly/ConstructorCallbackList.h | 61 | // Per the example above, | COMMENT |
| LOW | folly/ConcurrentSkipList.h | 121 | #include <atomic> | COMMENT |
| LOW | folly/ConcurrentSkipList.h | 621 | } | COMMENT |
| LOW | folly/ExceptionWrapper.h | 21 | #include <exception> | COMMENT |
| LOW | folly/ExceptionWrapper.h | 41 | COMMENT | |
| LOW | folly/ExceptionWrapper.h | 61 | //! | COMMENT |
| LOW | folly/ExceptionWrapper.h | 81 | //! LOG(ERROR) << "FAILWHALE!"; | COMMENT |
| LOW | folly/ExceptionWrapper.h | 141 | //! \post `*this` contains a copy of `that`, and `that` is unmodified | COMMENT |
| LOW | folly/ExceptionWrapper.h | 201 | void reset(); | COMMENT |
| LOW | folly/ExceptionWrapper.h | 261 | COMMENT | |
| LOW | folly/ExceptionWrapper.h | 281 | //! assert( ew.with_exception([](std::runtime_error& e){/*...*/}) ); | COMMENT |
| LOW | folly/ExceptionWrapper.h | 301 | //! `throw e;`.) | COMMENT |
| LOW | folly/ExceptionWrapper.h | 321 | //! [&](std::exception const& e) { | COMMENT |
| LOW | folly/Singleton.cpp | 21 | #include <signal.h> | COMMENT |
| LOW | folly/Singleton.cpp | 41 | #include <folly/system/AtFork.h> | COMMENT |
| LOW | folly/Range.h | 41 | #include <folly/lang/Exception.h> | COMMENT |
| LOW | folly/Range.h | 641 | // T constructor that takes a type U that is implicitly convertible | COMMENT |
| LOW | folly/Traits.h | 21 | #include <functional> | COMMENT |
| LOW | folly/Traits.h | 81 | constexpr auto operator""_uzic() noexcept { | COMMENT |
| LOW | folly/Traits.h | 101 | /// else static_assert(always_false<T>, "Unsupported type"); | COMMENT |
| LOW | folly/Traits.h | 141 | } // namespace detail | COMMENT |
| LOW | folly/Traits.h | 181 | /// is_bounded_array_v | COMMENT |
| LOW | folly/Traits.h | 361 | /// | COMMENT |
| LOW | folly/Traits.h | 401 | /// like | COMMENT |
| LOW | folly/Traits.h | 501 | COMMENT | |
| LOW | folly/Traits.h | 521 | /// mimic: std::experimental::detected_or_t, Library Fundamentals TS v2 | COMMENT |
| LOW | folly/Traits.h | 541 | // is_detected | COMMENT |
| LOW | folly/Traits.h | 1041 | // | COMMENT |
| LOW | folly/Traits.h | 1181 | template <std::size_t I, typename... Ts> | COMMENT |
| LOW | folly/Traits.h | 1321 | /// value_pack_size_v | COMMENT |
| LOW | folly/CppAttributes.h | 21 | #pragma once | COMMENT |
| LOW | folly/CppAttributes.h | 81 | * call-sites. | COMMENT |
| LOW | folly/CppAttributes.h | 121 | #elif FOLLY_HAS_CPP_ATTRIBUTE(msvc::no_unique_address) | COMMENT |
| LOW | folly/CppAttributes.h | 141 | * type-based alias analysis, but are instead assumed to be able to alias any | COMMENT |
| LOW | folly/CppAttributes.h | 161 | COMMENT | |
| LOW | folly/CppAttributes.h | 181 | #define FOLLY_ATTR_GNU_NOCLONE gnu::noclone | COMMENT |
| LOW | folly/CppAttributes.h | 201 | #define FOLLY_ATTR_CLANG_CORO_AWAIT_ELIDABLE | COMMENT |
| LOW | folly/SocketAddress.h | 21 | #include <cstddef> | COMMENT |
| LOW | folly/CMakeLists.txt | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. | COMMENT |
| LOW | folly/Format.cpp | 181 | COMMENT | |
| LOW | folly/IPAddress.h | 21 | * | COMMENT |
| LOW | folly/base64.h | 21 | #include <string> | COMMENT |
| LOW | folly/base64.h | 41 | // (padding symbols are required on decoding) | COMMENT |
| LOW | folly/base64.h | 61 | struct base64_decode_error; | COMMENT |
| LOW | folly/ScopeGuard.h | 321 | } | COMMENT |
| LOW | folly/ScopeGuard.h | 341 | // use_some_resource(resource); // may throw; cleanup will happen | COMMENT |
| LOW | folly/ScopeGuard.h | 381 | // | COMMENT |
| LOW | folly/ScopeGuard.h | 401 | * @def SCOPE_FAIL | COMMENT |
| LOW | folly/ConcurrentBSkipList.h | 21 | // key capacity; P is the promotion denominator (see topLevelForKey). | COMMENT |
| LOW | folly/ConcurrentBSkipList.h | 41 | #include <atomic> | COMMENT |
| LOW | folly/ProducerConsumerQueue.h | 21 | #include <cstdlib> | COMMENT |
| LOW | folly/ProducerConsumerQueue.h | 41 | /// | COMMENT |
| LOW | folly/ProducerConsumerQueue.h | 81 | // Checks a private, unsynchronized cache of the other side's cursor | COMMENT |
| LOW | folly/Singleton.h | 21 | /// Recommended usage of this class: suppose you have a class | COMMENT |
| 1725 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | folly/python/test/iobuf.py | 371 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 380 | self.assertEqual(xb.length(), 15) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 417 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 420 | self.assertEqual(xb.length(), 16) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 424 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 434 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 444 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 448 | self.assertEqual(xb.length(), 16) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 452 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 463 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 466 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 468 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 479 | self.assertEqual(xb.length(), 16) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 483 | self.assertEqual(xb.length(), 10) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 486 | self.assertEqual(xb.length(), 4) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 490 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 493 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 502 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 505 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 508 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 512 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 515 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 525 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 536 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 539 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 541 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 552 | self.assertEqual(xb.length(), 16) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 556 | self.assertEqual(xb.length(), 10) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 559 | self.assertEqual(xb.length(), 4) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 563 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 566 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 575 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 578 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 581 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 585 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 588 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 598 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 609 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 612 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 614 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 616 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 627 | self.assertEqual(xb.length(), 16) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 631 | self.assertEqual(xb.length(), 10) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 634 | self.assertEqual(xb.length(), 16) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 638 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 641 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 643 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 652 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 655 | self.assertEqual(xb.length(), 5) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 657 | self.assertEqual(xb.length(), 0) | CODE |
| HIGH⚡ | folly/python/test/iobuf.py | 667 | self.assertEqual(xb.length(), 0) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/python/test/test_iobuf_ext.py | 27 | def test_iobuf_should_not_hang_when_outliving_asyncio_loop(self) -> None: | CODE |
| LOW | folly/python/test/test_iobuf_ext.py | 60 | def test_copy_from_buffer_bytes(self) -> None: | CODE |
| LOW | folly/python/test/test_iobuf_ext.py | 74 | def test_copy_from_buffer_bytearray(self) -> None: | CODE |
| LOW | folly/python/test/test_iobuf_ext.py | 87 | def test_copy_from_buffer_memoryview(self) -> None: | CODE |
| LOW | folly/python/test/test_iobuf_ext.py | 96 | def test_copy_from_buffer_does_not_pin_source_object(self) -> None: | CODE |
| LOW | folly/python/test/teardown.py | 41 | def test_fiber_manager_tear_down(self) -> None: | CODE |
| LOW | folly/python/test/coro.py | 34 | async def _return_five_after_cancelled(self) -> int: | CODE |
| LOW | folly/python/test/coro.py | 90 | async def test_executor_stats_blocking(self) -> None: | CODE |
| LOW | folly/python/test/test_set_executor.py | 28 | def test_cannot_override_existing_loop(self): | CODE |
| LOW | folly/python/test/request_context.py | 88 | async def test_multiple_ctx_copies_memory_leak(self) -> None: | CODE |
| LOW | folly/python/test/generator.py | 33 | async def test_iter_generator_empty(self) -> None: | CODE |
| LOW | folly/python/test/generator.py | 42 | async def test_iter_generator_error(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 363 | def test_buffer_creation_with_size_write(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 383 | def test_buffer_creation_with_size_write_fail(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 415 | def test_buffer_creation_with_size_append(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 422 | def test_buffer_creation_with_size_append_fail(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 432 | def test_buffer_creation_with_size_append_fail_negative(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 442 | def test_buffer_creation_with_size_multiple_append(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 450 | def test_buffer_creation_with_size_multiple_append_fail(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 461 | def test_buffer_creation_with_size_trim_start(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 470 | def test_buffer_creation_with_size_write_trim_start(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 488 | def test_buffer_creation_with_size_trim_start_fail(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 500 | def test_buffer_creation_with_size_trim_start_multiple(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 510 | def test_buffer_creation_with_size_trim_start_fail_multiple(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 523 | def test_buffer_creation_with_size_trim_start_fail_negative(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 534 | def test_buffer_creation_with_size_trim_end(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 543 | def test_buffer_creation_with_size_write_trim_end(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 561 | def test_buffer_creation_with_size_trim_end_fail(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 573 | def test_buffer_creation_with_size_trim_end_multiple(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 583 | def test_buffer_creation_with_size_trim_end_fail_multiple(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 596 | def test_buffer_creation_with_size_trim_end_fail_negative(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 607 | def test_buffer_creation_with_size_prepend(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 618 | def test_buffer_creation_with_size_write_prepend(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 636 | def test_buffer_creation_with_size_prepend_fail(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 650 | def test_buffer_creation_with_size_prepend_fail_multiple(self) -> None: | CODE |
| LOW⚡ | folly/python/test/iobuf.py | 665 | def test_buffer_creation_with_size_prepend_fail_negative(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 128 | def test_conversion_from_python_to_cpp(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 139 | def test_conversion_from_python_to_cpp_with_wrong_type(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 206 | def test_buffer_update_in_place(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 212 | def test_buffer_write_out_of_bounds(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 229 | def test_buffer_read_out_of_bounds(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 244 | def test_buffer_write_empty_pieces(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 270 | def test_empty_writable_chain(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 280 | def test_appendable_writable_chain(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 295 | def test_appendable_writable_chain_overwrite(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 321 | def test_appendable_writable_chain_coalesce(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 339 | def test_appendable_writable_chain_coalesce_exception(self) -> None: | CODE |
| LOW | folly/python/test/iobuf.py | 399 | def test_buffer_creation_with_size_read_fail(self) -> None: | CODE |
| LOW | folly/fibers/scripts/gdb.py | 834 | def fiber_manager_active_fibers(fm): | CODE |
| LOW | folly/fibers/scripts/gdb.py | 888 | def get_fiber_manager_map_evb(): | CODE |
| LOW | folly/fibers/scripts/gdb.py | 892 | def get_fiber_manager_map_vevb(): | CODE |
| LOW | folly/agents/tests/test_directory_snapshot.py | 39 | def test_round_trip_preserves_paths_bytes_and_empty_files(self) -> None: | CODE |
| LOW | folly/agents/tests/test_directory_snapshot.py | 62 | def test_rejects_root_and_child_links(self) -> None: | CODE |
| LOW | folly/agents/tests/test_directory_snapshot.py | 81 | def test_rejects_special_files_without_reading_them(self) -> None: | CODE |
| LOW | folly/agents/tests/test_directory_snapshot.py | 93 | def test_write_rejects_paths_outside_destination(self) -> None: | CODE |
| LOW | folly/agents/tests/test_directory_snapshot.py | 108 | def test_write_does_not_change_existing_destinations(self) -> None: | CODE |
| LOW⚡ | folly/agents/tests/test_debrief_tables.py | 54 | def test_duration_rounding_carries_to_the_next_minute(self) -> None: | CODE |
| LOW⚡ | folly/agents/tests/test_debrief_tables.py | 57 | def test_total_duration_sums_displayed_values(self) -> None: | CODE |
| LOW⚡ | folly/agents/tests/test_debrief_tables.py | 65 | def test_renders_production_tables(self) -> None: | CODE |
| LOW | folly/agents/tests/test_debrief_tables.py | 97 | def test_marks_unknown_pricing(self) -> None: | CODE |
| 143 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | folly/String.cpp | 557 | // Step 1: Clear the high order bit. We'll deal with it in Step 5. | COMMENT |
| LOW⚡ | folly/String.cpp | 564 | // Step 2: Add 0x25 (37) | COMMENT |
| LOW⚡ | folly/String.cpp | 571 | // Step 3: clear the high order bit | COMMENT |
| LOW⚡ | folly/String.cpp | 577 | // Step 4: Add 0x1a (26) | COMMENT |
| LOW⚡ | folly/String.cpp | 586 | // Step 5: Shift the high order bit 2 spaces to the right: the spot | COMMENT |
| LOW⚡ | folly/String.cpp | 597 | // Step 6: Apply a mask to clear everything except the 0x20 bit | COMMENT |
| LOW⚡ | folly/String.cpp | 603 | // Step 7: Add rotated to c | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 170 | // Step 1: first 8 bytes are network prefix, and can be stripped | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 171 | // Step 2: invert the universal/local (U/L) flag (bit 7) | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 173 | // Step 3: copy these bytes as they are | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 176 | // Step 4: strip bytes (0xfffe), which are bytes_[11] and bytes_[12] | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 177 | // Step 5: copy the rest. | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1741 | // Step 1: skipTo(100) → should return 500 (first non-deleted key >= 100) | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1749 | // Step 2: skipTo(200) — target < lastResult. Folly returns 500 (stays put). | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1758 | // Step 3: skipTo(300) — still < 500. Same. | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1766 | // Step 4: skipTo(600) — past the jump, normal forward | COMMENT |
| LOW | folly/algorithm/simd/test/MovemaskTest.cpp | 119 | // Step 1: | COMMENT |
| LOW | folly/algorithm/simd/test/MovemaskTest.cpp | 128 | // Step 2: | COMMENT |
| LOW | folly/compression/Compression.cpp | 1828 | // Step 1: | COMMENT |
| LOW | folly/compression/Compression.cpp | 1847 | // Step 2: | COMMENT |
| LOW | folly/stats/BucketedTimeSeries-inl.h | 123 | // An earlier time in the past. We need to check if this time still falls | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | folly/SharedMutex.h | 1863 | // std::shared_lock specialization for folly::SharedMutex to leverage tokenful | COMMENT |
| MEDIUM | folly/MPMCQueue.h | 66 | /// which is more robust to contention than a CAS loop. Each of the | COMMENT |
| MEDIUM | folly/result/rich_error_base.h | 310 | /// writing rich errors to glog & `std` streams. This ought to be more robust | COMMENT |
| MEDIUM | folly/memory/Malloc.cpp | 81 | // Absolutely wild, but this apparently needs to be cached within this TU. | COMMENT |
| MEDIUM | folly/memory/Malloc.cpp | 118 | // Absolutely wild, but this apparently needs to be cached within this TU. | COMMENT |
| MEDIUM | folly/hash/detail/RandomSeed.h | 30 | // leverage ASLR (Address Space Layout Randomization) [2] to get a per-run | COMMENT |
| MEDIUM | folly/fibers/scripts/gdb.py | 251 | # than the stack of the currently selected frame. Essentially, we take | COMMENT |
| LOW⚡ | folly/fibers/scripts/gdb.py | 613 | # for a cached fiber will just return the same cached FiberInfo. | COMMENT |
| LOW | folly/fibers/scripts/gdb.py | 792 | # almost always 0 (used for frozen options). We'll ignore it and just use | COMMENT |
| MEDIUM | folly/lang/MustUseImmediately.h | 32 | // Essentially, this is a public analog of `folly::detail`. If you use it, | COMMENT |
| MEDIUM | folly/lang/SafeAlias-fwd.h | 47 | // Definitely has aliasing, we know nothing of the lifetime. | COMMENT |
| MEDIUM | folly/detail/RangeSse42.cpp | 23 | // Essentially, two versions of this file: one with an SSE42 implementation | COMMENT |
| MEDIUM | folly/coro/safe/SafeTask.h | 134 | // Design note: Fundamentally, the reason that we have `member_task`, and | COMMENT |
| MEDIUM | folly/coro/safe/test/NowTaskTest.cpp | 74 | // expected call-path-to-awaiter. This is pretty robust, so long as I check | COMMENT |
| MEDIUM | …/coro/safe/detail/DefineMovableDeepConstLrefCopyable.h | 68 | // non-copyable, instead of the more nuanced behavior we need. To | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | folly/fibers/scripts/gdb.py | 866 | except gdb.error: | CODE |
| HIGH | folly/agents/tests/checkpoint_accounting.py | 110 | except json.JSONDecodeError: | CODE |
| HIGH | folly/agents/critic-iterate/session_current_model_id.py | 74 | except (OSError, ValueError): | CODE |
| HIGH | folly/support/gdb.py | 53 | except gdb.error: | CODE |
| HIGH | folly/coro/scripts/co_bt.py | 641 | except Exception: | CODE |
| HIGH | folly/coro/scripts/co_bt.py | 820 | except Exception: | CODE |
| HIGH | folly/coro/scripts/co_bt.py | 572 | except Exception: | CODE |
| HIGH | folly/coro/scripts/co_bt.py | 700 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | folly/String.cpp | 557 | // Step 1: Clear the high order bit. We'll deal with it in Step 5. | COMMENT |
| LOW⚡ | folly/String.cpp | 564 | // Step 2: Add 0x25 (37) | COMMENT |
| LOW⚡ | folly/String.cpp | 571 | // Step 3: clear the high order bit | COMMENT |
| LOW⚡ | folly/String.cpp | 577 | // Step 4: Add 0x1a (26) | COMMENT |
| LOW⚡ | folly/String.cpp | 586 | // Step 5: Shift the high order bit 2 spaces to the right: the spot | COMMENT |
| LOW⚡ | folly/String.cpp | 597 | // Step 6: Apply a mask to clear everything except the 0x20 bit | COMMENT |
| LOW⚡ | folly/String.cpp | 603 | // Step 7: Add rotated to c | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 170 | // Step 1: first 8 bytes are network prefix, and can be stripped | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 171 | // Step 2: invert the universal/local (U/L) flag (bit 7) | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 173 | // Step 3: copy these bytes as they are | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 176 | // Step 4: strip bytes (0xfffe), which are bytes_[11] and bytes_[12] | COMMENT |
| LOW⚡ | folly/IPAddressV6.cpp | 177 | // Step 5: copy the rest. | COMMENT |
| LOW | folly/futures/Future.h | 2306 | /// NOTE: This function is deprecated. Please use makeSemiFuture and pass the | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1741 | // Step 1: skipTo(100) → should return 500 (first non-deleted key >= 100) | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1749 | // Step 2: skipTo(200) — target < lastResult. Folly returns 500 (stays put). | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1758 | // Step 3: skipTo(300) — still < 500. Same. | COMMENT |
| LOW⚡ | folly/test/ConcurrentBSkipListTest.cpp | 1766 | // Step 4: skipTo(600) — past the jump, normal forward | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | folly/test/AsciiCaseInsensitiveBenchmark.cpp | 27 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam" | CODE |
| LOW⚡ | folly/test/AsciiCaseInsensitiveBenchmark.cpp | 27 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam" | CODE |
| LOW⚡ | folly/test/AsciiCaseInsensitiveBenchmark.cpp | 33 | "tortor. Lorem ipsum dolor sit amet, consectetur adipiscing" | CODE |
| LOW⚡ | folly/test/AsciiCaseInsensitiveBenchmark.cpp | 33 | "tortor. Lorem ipsum dolor sit amet, consectetur adipiscing" | CODE |
| LOW | folly/test/AsciiCaseInsensitiveBenchmark.cpp | 63 | "tincidunt. Phasellus eget dolor sit amet ipsum dapibus condimentum" | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 475 | toAppend("Lorem ipsum ", 1234, String(" dolor amet "), 567.89, '!', &s); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 476 | EXPECT_EQ(s, "Lorem ipsum 1234 dolor amet 567.89!"); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 481 | s = to<String>("Lorem ipsum ", nullptr, 1234, " dolor amet ", 567.89, '.'); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 482 | EXPECT_EQ(s, "Lorem ipsum 1234 dolor amet 567.89."); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 501 | ":", "Lorem ipsum ", 1234, String(" dolor amet "), 567.89, '!', &s); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 502 | EXPECT_EQ(s, "Lorem ipsum :1234: dolor amet :567.89:!"); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 508 | ":", "Lorem ipsum ", nullptr, 1234, " dolor amet ", 567.89, '.'); | CODE |
| LOW⚡ | folly/test/ConvTest.cpp | 509 | EXPECT_EQ(s, "Lorem ipsum ::1234: dolor amet :567.89:."); | CODE |
| LOW | folly/test/FBStringTest.cpp | 1282 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan \n\ | CODE |
| LOW | folly/test/FBStringTest.cpp | 1282 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan \n\ | CODE |
| LOW | folly/io/test/IOBufTest.cpp | 1327 | const char data[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"; | CODE |
| LOW | folly/io/test/IOBufTest.cpp | 1327 | const char data[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/agents/tests/test_directory_snapshot.py | 15 | CODE | |
| LOW | folly/agents/tests/checkpoint.py | 25 | CODE | |
| LOW | folly/agents/tests/test_debrief_tables.py | 15 | CODE | |
| LOW | folly/agents/tests/test_run_scenario.py | 15 | CODE | |
| LOW | folly/agents/tests/checkpoint_accounting.py | 17 | CODE | |
| LOW | folly/agents/tests/test_isolated_codex.py | 15 | CODE | |
| LOW | folly/agents/tests/test_checkpoint_accounting.py | 15 | CODE | |
| LOW | folly/agents/tests/compress_checkpoint_outputs.py | 76 | CODE | |
| LOW | folly/agents/tests/run_scenario.py | 17 | CODE | |
| LOW | folly/agents/tests/test_compress_checkpoint_outputs.py | 15 | CODE | |
| LOW | folly/agents/tests/debrief_tables.py | 17 | CODE | |
| LOW | folly/agents/tests/directory_snapshot.py | 21 | CODE | |
| LOW | folly/agents/tests/test_isolated_agent.py | 15 | CODE | |
| LOW | folly/agents/tests/test_checkpoint.py | 15 | CODE | |
| LOW | folly/agents/scripts/isolated_agent.py | 21 | CODE | |
| LOW | folly/agents/scripts/isolated_codex.py | 18 | CODE | |
| LOW | folly/agents/critic-iterate/codex-reviewer.py | 18 | CODE | |
| LOW | …lly/agents/critic-iterate/tests/test_codex_reviewer.py | 16 | CODE | |
| LOW | folly/json/test/tests/test_float_format_python_json.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/python/test/request_context.py | 173 | except Exception as e: | CODE |
| LOW | folly/agents/tests/checkpoint.py | 107 | except Exception: | CODE |
| MEDIUM | folly/agents/tests/checkpoint.py | 81 | def main() -> None: | CODE |
| LOW | folly/agents/tests/run_scenario.py | 758 | except Exception: | CODE |
| MEDIUM⚡ | folly/coro/scripts/co_bt.py | 504 | print("Error collecting async stack trace:") | CODE |
| MEDIUM | folly/coro/scripts/co_bt.py | 564 | def get_current_pthread_addr() -> DebuggerValue: | CODE |
| MEDIUM | folly/coro/scripts/co_bt.py | 686 | def get_current_pthread_addr() -> DebuggerValue: | CODE |
| LOW⚡ | folly/coro/scripts/co_bt.py | 503 | except Exception: | CODE |
| LOW | folly/coro/scripts/co_bt.py | 241 | except Exception: | CODE |
| LOW | folly/coro/scripts/co_bt.py | 572 | except Exception: | STRING |
| LOW | folly/coro/scripts/co_bt.py | 641 | except Exception: | STRING |
| LOW | folly/coro/scripts/co_bt.py | 700 | except Exception: | STRING |
| LOW | folly/coro/scripts/co_bt.py | 820 | except Exception: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/FBString.h | 667 | // Medium strings are copied eagerly. Don't forget to allocate | COMMENT |
| LOW | folly/FBString.h | 720 | // Medium strings are allocated normally. Don't forget to | COMMENT |
| LOW | folly/FBString.h | 801 | // Keep the string at medium size. Don't forget to allocate | COMMENT |
| LOW | folly/FBString.h | 834 | // Don't forget to allocate one extra Char for the terminating null | COMMENT |
| MEDIUM | folly/Format.h | 358 | * so feel free to modify it in place if necessary. (For example, wrap an | COMMENT |
| LOW | folly/futures/test/FutureTest.cpp | 1155 | // (Don't forget to enable ASAN) | COMMENT |
| MEDIUM | folly/lang/MustUseImmediately.h | 558 | // As discussed above, this helps types manage object slicing risk. | COMMENT |
| LOW | folly/container/HeterogeneousAccess.h | 51 | // the header that declares T. Don't forget to typedef is_transparent to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/fibers/scripts/gdb.py | 711 | CODE | |
| LOW | folly/fibers/scripts/gdb.py | 759 | CODE | |
| LOW | folly/agents/tests/test_directory_snapshot.py | 93 | CODE | |
| LOW | folly/agents/tests/test_run_scenario.py | 1218 | CODE | |
| LOW | folly/agents/tests/test_checkpoint_accounting.py | 268 | CODE | |
| LOW | folly/agents/tests/compress_checkpoint_outputs.py | 184 | CODE | |
| LOW | folly/agents/tests/directory_snapshot.py | 30 | CODE | |
| LOW | folly/agents/critic-iterate/session_current_model_id.py | 32 | CODE | |
| LOW | folly/agents/critic-iterate/session_current_model_id.py | 48 | CODE | |
| LOW | folly/agents/critic-iterate/session_current_model_id.py | 87 | CODE | |
| LOW | folly/support/gdb.py | 25 | CODE | |
| LOW | folly/support/gdb.py | 129 | CODE | |
| LOW | folly/tool/benchmark_ab.py | 1327 | CODE | |
| LOW | folly/tool/tests/test_benchmark_ab.py | 1037 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | folly/fibers/scripts/gdb.py | 611 | # This class is responsible for maintaining the name/address:fiberinfo mapping. | COMMENT |
| MEDIUM⚡ | folly/fibers/scripts/gdb.py | 612 | # Creating a FiberInfo object adds it to the cache, and trying to create one | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/CancellationToken.h | 141 | // Example usage: | COMMENT |
| LOW | folly/container/vector_bool.h | 30 | /// Usage example: | COMMENT |
| LOW | folly/coro/Baton.h | 43 | /// Example usage: | COMMENT |
| LOW | folly/coro/SharedMutex.h | 83 | /// Example usage: | COMMENT |
| LOW | folly/coro/AutoCleanup.h | 45 | /// Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | folly/io/async/test/AsyncSocketTest2.cpp | 2124 | // Make sure the write attempt timed out as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/support/gdb.py | 446 | # Check if the segment has been initialized or setp over it | COMMENT |
| LOW | folly/support/gdb.py | 460 | # Check if we're done with this segment | COMMENT |
| LOW | folly/coro/scripts/co_bt.py | 221 | # Check if the tls key is initialized | COMMENT |
| LOW | folly/coro/scripts/co_bt.py | 352 | # Check if there is an AsyncStackRoot and if so, whether there | COMMENT |
| LOW | folly/coro/scripts/co_bt.py | 370 | # Check if there is a higher-level AsyncStackRoot that defines | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CMakeLists.txt | 305 | # ============================================================================= | COMMENT |
| MEDIUM | CMakeLists.txt | 309 | # ============================================================================= | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/python/test/request_context.py | 214 | async def set_context() -> None: | CODE |
| LOW | folly/agents/tests/test_checkpoint_accounting.py | 126 | def _set_time(path: Path, second: int) -> None: | CODE |
| LOW | folly/agents/tests/run_scenario.py | 681 | def _update_metadata(run: Run, **updates: object) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | folly/io/async/AsyncSSLSocket.h | 389 | // TODO: implement graceful shutdown in close() | COMMENT |
| LOW | folly/io/async/AsyncSSLSocket.h | 390 | // TODO: implement detachSSL() that returns the SSL connection | COMMENT |