AI Slop Code RIsk Monitor

lexiforest/curl_cffi

Python binding for curl-impersonate fork via cffi. A http client that can impersonate browser tls/ja3/http2 fingerprints.

29.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for lexiforest/curl_cffi, a Python project with 6,698 GitHub stars. SynthScan examined 30,151 lines of code across 120 source files, recording 683 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 29.2 (Elevated 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.

29.2
Adjusted Signal
29.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
6.7K
Stars
Python
Language
30.2K
Lines of Code
120
Files
683
Pattern Hits
2026-10-12
Scan Date
0.38
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 54.4/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 12.3/100 · LOW

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

Agent Over-Engineering Ratio 66.9/100 · HIGH

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

PR Review Velocity Impact 81.2/100 · CRITICAL

Which changes need focused human review? 683 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 45MEDIUM 50LOW 588

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 683 distinct pattern matches across 16 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.

Hyper-Verbose Identifiers382 hits · 330 pts
SeverityFileLineSnippetContext
LOWbenchmark/ws_bench_2_sync.py26async def server_recv_benchmark_handler(ws: web.WebSocketResponse) -> None:CODE
LOWbenchmark/ws_bench_2_sync.py80async def server_send_benchmark_handler(ws: web.WebSocketResponse) -> None:CODE
LOWbenchmark/ws_bench_2_sync.py162def client_recv_benchmark_handler(ws: WebSocket) -> None:CODE
LOWbenchmark/ws_bench_2_sync.py211def client_send_benchmark_handler(ws: WebSocket) -> None:CODE
LOWbenchmark/ws_bench_utils.py144def binary_data_generator_sync(CODE
LOW⚡tests/unittest/test_async_websockets.py1245 async def test_ping_too_large_raises(self, ws_connection: AsyncWebSocket) -> None:CODE
LOW⚡tests/unittest/test_async_websockets.py1250 async def test_ping_default_payload(self, ws_connection: AsyncWebSocket) -> None:CODE
LOW⚡tests/unittest/test_async_websockets.py1260 async def test_pong_default_payload(self, ws_connection: AsyncWebSocket) -> None:CODE
LOW⚡tests/unittest/test_async_websockets.py1270 async def test_pong_too_large_raises(self, ws_connection: AsyncWebSocket) -> None:CODE
LOW⚡tests/unittest/test_async_websockets.py1275 async def test_control_payload_limit_counts_bytes(CODE
LOW⚡tests/unittest/test_async_websockets.py1406 async def test_full_session_lifecycle(CODE
LOW⚡tests/unittest/test_async_websockets.py1468 async def test_various_recv_queue_sizes(CODE
LOWtests/unittest/test_async_websockets.py166async def close_immediately_handler(CODE
LOWtests/unittest/test_async_websockets.py265def start_configurable_ws_server(CODE
LOWtests/unittest/test_async_websockets.py543 async def test_echo_multiple_messages(self, ws_connection: AsyncWebSocket) -> None:CODE
LOWtests/unittest/test_async_websockets.py633 async def test_pong_is_silently_consumed(CODE
LOWtests/unittest/test_async_websockets.py653 async def test_server_ping_is_silently_consumed(CODE
LOWtests/unittest/test_async_websockets.py692 async def test_recv_timeout_returns_if_data_arrives(CODE
LOWtests/unittest/test_async_websockets.py723 async def test_message_at_curl_frame_boundary(CODE
LOWtests/unittest/test_async_websockets.py732 async def test_message_just_over_frame_boundary(CODE
LOWtests/unittest/test_async_websockets.py745 async def test_concurrent_recv_single_consumer(CODE
LOWtests/unittest/test_async_websockets.py761 async def test_concurrent_recv_multiple_consumers(CODE
LOWtests/unittest/test_async_websockets.py789 async def test_send_while_receiving(self, ws_connection: AsyncWebSocket) -> None:CODE
LOWtests/unittest/test_async_websockets.py810 async def test_more_recv_callers_than_queue_size(CODE
LOWtests/unittest/test_async_websockets.py867 async def test_recv_callers_exceed_queue_with_slow_producer(CODE
LOWtests/unittest/test_async_websockets.py929 async def test_concurrent_recv_with_connection_close(CODE
LOWtests/unittest/test_async_websockets.py998 async def test_cancel_recv_before_message(CODE
LOWtests/unittest/test_async_websockets.py1053 async def test_recv_after_close_raises(CODE
LOWtests/unittest/test_async_websockets.py1066 async def test_send_after_close_raises(CODE
LOWtests/unittest/test_async_websockets.py1078 async def test_server_close_received(CODE
LOWtests/unittest/test_async_websockets.py1125 async def test_aiter_on_closed_raises(CODE
LOWtests/unittest/test_async_websockets.py1138 async def test_iterator_skips_control_frames(CODE
LOWtests/unittest/test_async_websockets.py1163 async def test_recv_queue_size_limit(CODE
LOWtests/unittest/test_async_websockets.py1193 async def test_drain_on_error_false(CODE
LOWtests/unittest/test_async_websockets.py1291 async def test_flush_waits_for_queue(self, ws_connection: AsyncWebSocket) -> None:CODE
LOWtests/unittest/test_async_websockets.py1303 async def test_is_alive_true_when_connected(CODE
LOWtests/unittest/test_async_websockets.py1309 async def test_is_alive_false_after_close(CODE
LOWtests/unittest/test_async_websockets.py1323 async def test_close_code_and_reason(CODE
LOWtests/unittest/test_async_websockets.py1361 async def test_empty_string_message(self, ws_connection: AsyncWebSocket) -> None:CODE
LOWtests/unittest/test_async_websockets.py1382 async def test_binary_all_byte_values(self, ws_connection: AsyncWebSocket) -> None:CODE
LOWtests/unittest/test_async_websockets.py1490 async def test_various_send_queue_sizes(CODE
LOWtests/unittest/test_async_websockets.py1586 async def test_various_max_message_sizes(CODE
LOWtests/unittest/test_async_websockets.py1606 async def test_client_enforces_max_message_size(CODE
LOWtests/unittest/test_async_websockets.py1636 async def test_server_enforces_max_message_size(CODE
LOWtests/unittest/test_async_websockets.py1670 async def test_coalesce_frames_enabled(CODE
LOWtests/unittest/test_async_websockets.py1699 async def test_coalesce_frames_disabled(CODE
LOWtests/unittest/test_async_websockets.py1716 async def test_coalesce_send_then_recv(CODE
LOWtests/unittest/test_async_websockets.py1735 async def test_coalesce_preserves_message_order(CODE
LOWtests/unittest/test_async_websockets.py1768 async def test_coalesce_control_frame_interleaving(CODE
LOWtests/unittest/test_async_websockets.py1804 async def test_coalesce_never_merges_control_frames(CODE
LOWtests/unittest/test_async_websockets.py1831 async def test_partial_write_exact_boundary_resumption(CODE
LOWtests/unittest/test_async_websockets.py1890 async def test_send_eagain_retry_preserves_state(CODE
LOWtests/unittest/test_async_websockets.py1925 async def test_manual_fragmentation_with_cont_flag(CODE
LOWtests/unittest/test_async_websockets.py2010 async def test_autoclose_false_survives_close_frame(CODE
LOWtests/unittest/test_async_websockets.py2054 async def test_block_on_recv_queue_full_true(CODE
LOWtests/unittest/test_async_websockets.py2080 async def test_block_on_recv_queue_full_false(CODE
LOWtests/unittest/test_async_websockets.py2187 async def test_close_with_long_reason(CODE
LOWtests/unittest/test_async_websockets.py2224 async def test_send_binary_explicit(CODE
LOWtests/unittest/test_async_websockets.py2238 async def test_multiple_flush_calls(CODE
LOWtests/unittest/test_async_websockets.py2259 async def test_close_code_extraction(CODE
322 more matches not shown…
Empty Error Handlers32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHbenchmark/ws_bench_1_client.py174except CancelledError:CODE
HIGHtests/unittest/test_async_websockets.py108except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_async_websockets.py122except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_async_websockets.py136except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_async_websockets.py162except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_async_websockets.py185except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_async_websockets.py196except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_async_websockets.py207except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/conftest.py748except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/conftest.py855except TypeError:CODE
HIGHtests/unittest/conftest.py861except Exception:CODE
HIGHtests/unittest/test_sync_websockets.py88except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_sync_websockets.py100except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_sync_websockets.py116except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_sync_websockets.py137except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_sync_websockets.py147except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHtests/unittest/test_sync_websockets.py157except (ConnectionClosedOK, ConnectionClosedError):CODE
HIGHexamples/websockets/long_running_async.py22except (KeyboardInterrupt, asyncio.CancelledError):CODE
HIGHexamples/websockets/long_running_sync.py20except KeyboardInterrupt:CODE
HIGHcurl_cffi/_asyncio_selector.py219except RuntimeError:CODE
HIGHcurl_cffi/_asyncio_selector.py226except AttributeError:CODE
HIGHcurl_cffi/cli/output.py98except (json.JSONDecodeError, ValueError):CODE
HIGHcurl_cffi/requests/streams.py117except (AttributeError, OSError):CODE
HIGHcurl_cffi/requests/websockets.py158except InvalidStateError:CODE
HIGHcurl_cffi/requests/websockets.py1803except QueueEmpty:CODE
HIGHcurl_cffi/requests/websockets.py2503except CancelledError:CODE
HIGHcurl_cffi/requests/websockets.py2631except CancelledError:CODE
HIGHcurl_cffi/requests/websockets.py1839except CancelledError:CODE
HIGHcurl_cffi/requests/websockets.py2843except CancelledError:CODE
HIGHcurl_cffi/requests/websockets.py2382except Exception:CODE
HIGHcurl_cffi/requests/websockets.py2759except Exception:CODE
HIGHcurl_cffi/requests/utils.py1046except ValueError:CODE
Decorative Section Separators32 hits · 110 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unittest/test_async_websockets.py1398# =============================================================================COMMENT
MEDIUM⚡tests/unittest/test_async_websockets.py1400# =============================================================================COMMENT
MEDIUM⚡tests/unittest/test_async_websockets.py1459# =============================================================================COMMENT
MEDIUM⚡tests/unittest/test_async_websockets.py1461# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py60# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py62# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py334# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py336# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py464# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py466# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py505# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py507# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py2202# =============================================================================COMMENT
MEDIUMtests/unittest/test_async_websockets.py2204# =============================================================================COMMENT
MEDIUM⚡tests/unittest/test_curl.py459# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unittest/test_curl.py461# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/test_sync_websockets.py260# =============================================================================COMMENT
MEDIUMtests/unittest/test_sync_websockets.py262# =============================================================================COMMENT
MEDIUMtests/unittest/test_sync_websockets.py302# =============================================================================COMMENT
MEDIUMtests/unittest/test_sync_websockets.py304# =============================================================================COMMENT
MEDIUM⚡tests/unittest/cli/test_run.py145# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unittest/cli/test_run.py147# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/cli/test_run.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/cli/test_run.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/cli/test_run.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unittest/cli/test_run.py232# ---------------------------------------------------------------------------COMMENT
MEDIUMcurl_cffi/cli/run.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMcurl_cffi/cli/run.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMcurl_cffi/cli/run.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMcurl_cffi/cli/run.py167# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡curl_cffi/cli/run.py233# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡curl_cffi/cli/run.py235# ---------------------------------------------------------------------------COMMENT
Unused Imports101 hits · 79 pts
SeverityFileLineSnippetContext
LOWtests/unittest/test_async_websockets.py17CODE
LOWtests/unittest/test_sync_websockets.py18CODE
LOWcurl_cffi/curl.py1CODE
LOWcurl_cffi/__init__.py57CODE
LOWcurl_cffi/__init__.py59CODE
LOWcurl_cffi/__init__.py59CODE
LOWcurl_cffi/__init__.py59CODE
LOWcurl_cffi/__init__.py59CODE
LOWcurl_cffi/__init__.py62CODE
LOWcurl_cffi/__init__.py62CODE
LOWcurl_cffi/__init__.py63CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py64CODE
LOWcurl_cffi/__init__.py78CODE
LOWcurl_cffi/__init__.py78CODE
LOWcurl_cffi/__init__.py78CODE
LOWcurl_cffi/__init__.py78CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py80CODE
LOWcurl_cffi/__init__.py114CODE
LOWcurl_cffi/__init__.py114CODE
LOWcurl_cffi/__init__.py114CODE
41 more matches not shown…
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHcurl_cffi/curl.py803Send data to a websocket connection. Args: payload: content to send. flags: websocket fSTRING
HIGHcurl_cffi/curl.py835Close a websocket connection. Shorthand for :meth:`ws_send` with close code and message. Note that to completelySTRING
HIGHcurl_cffi/requests/websockets.py267Validate and encode control frame payloads. Args: payload (str | bytes): The control frame payload STRING
HIGHcurl_cffi/requests/websockets.py301Unpack close frame, decode reason, and validate close status codes. Args: frame (bytes): The WebSocSTRING
HIGHcurl_cffi/requests/websockets.py733Receive a WebSocket message. This method waits for and returns the next complete WebSocket message. AttSTRING
HIGHcurl_cffi/requests/websockets.py896Receive a text frame. Args: timeout: How many seconds to wait before raising a timeout. RaSTRING
HIGHcurl_cffi/requests/websockets.py934Receive a JSON frame. Args: loads: JSON decoder. Defaults to :meth:`json.loads`. timeouSTRING
HIGHcurl_cffi/requests/websockets.py982 Send a WebSocket message. Args: payload: Data to send (``str``/``bytes``/``bytearray``/``mSTRING
HIGHcurl_cffi/requests/websockets.py1203Send a ping frame. Args: payload (str | bytes, optional): Ping frame payload. Defaults to ``b""``. STRING
HIGHcurl_cffi/requests/websockets.py1220Send an unsolicited pong frame. Replies to server pings are automatic. Args: payload (str | bytes, STRING
HIGHcurl_cffi/requests/websockets.py1759Receive a WebSocket message. This method waits for and returns the next complete WebSocket message. ArSTRING
HIGHcurl_cffi/requests/websockets.py1874Receive a text frame. Args: timeout: How many seconds to wait before raising a timeout. RaSTRING
HIGHcurl_cffi/requests/websockets.py1915Receive a JSON frame. Args: loads: JSON decoder. Defaults to :meth:`json.loads`. timeouSTRING
Excessive Try-Catch Wrapping39 hits · 43 pts
SeverityFileLineSnippetContext
LOWbenchmark/ws_bench_2_sync.py76 except Exception:CODE
LOWbenchmark/ws_bench_2_sync.py207 except Exception:CODE
LOWbenchmark/ws_bench_2_sync.py228 except Exception:CODE
LOWbenchmark/benchmark.py84 except Exception:CODE
LOWbenchmark/ws_bench_2.py89 except Exception:CODE
LOWbenchmark/ws_bench_utils.py276 except Exception:CODE
LOWbenchmark/ws_bench_1_client.py152 except Exception:CODE
LOWbenchmark/ws_bench_1_client_sync.py138 except Exception:CODE
LOWbenchmark/ws_bench_1_server.py75 except Exception:CODE
LOWtests/unittest/conftest.py861 except Exception:CODE
LOWtests/unittest/test_share.py148 except Exception as e: # noqa: BLE001CODE
MEDIUMtests/unittest/test_share.py144def worker() -> None:CODE
LOWtests/pro/test_fp_verify.py114 except Exception as exc:CODE
LOWcurl_cffi/aio.py291 except Exception:CODE
MEDIUMcurl_cffi/cli/run.py141 print("Error: no requests found in file.", file=sys.stderr)CODE
MEDIUMcurl_cffi/cli/run.py188 print(f"Error: invalid HAR JSON: {exc}", file=sys.stderr)CODE
MEDIUMcurl_cffi/cli/run.py193 print("Error: no entries found in HAR file.", file=sys.stderr)CODE
MEDIUM⚡curl_cffi/cli/run.py245 print(f"Error: file not found: {filepath}", file=sys.stderr)CODE
MEDIUMcurl_cffi/cli/run.py257 print(f"Error: unsupported file format: {filepath}", file=sys.stderr)CODE
LOWcurl_cffi/cli/request.py53 except Exception as e:CODE
MEDIUMcurl_cffi/cli/request.py54 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMcurl_cffi/cli/parse.py57 print(f"Error: invalid JSON in '{item}': {exc}", file=sys.stderr)CODE
MEDIUMcurl_cffi/cli/parse.py75 print(f"Error: unknown request item '{item}'", file=sys.stderr)CODE
LOWcurl_cffi/cli/doctor.py33 except Exception as exc:CODE
MEDIUMcurl_cffi/requests/websockets.py488def __next__(self) -> bytes:CODE
LOWcurl_cffi/requests/websockets.py331 except Exception as e:CODE
LOWcurl_cffi/requests/websockets.py536 except Exception as e:CODE
LOWcurl_cffi/requests/websockets.py545 except Exception as exc:CODE
LOWcurl_cffi/requests/websockets.py1942 except Exception as e:CODE
LOWcurl_cffi/requests/websockets.py2273 except Exception:CODE
LOWcurl_cffi/requests/websockets.py2368 except Exception as exc:CODE
LOWcurl_cffi/requests/websockets.py2382 except Exception:CODE
LOWcurl_cffi/requests/websockets.py2509 except Exception as e:CODE
LOWcurl_cffi/requests/websockets.py2635 except Exception as e:CODE
LOWcurl_cffi/requests/websockets.py2744 except Exception as exc:CODE
LOWcurl_cffi/requests/websockets.py2759 except Exception:CODE
LOWcurl_cffi/requests/websockets.py2845 except Exception as exc:CODE
LOWcurl_cffi/requests/session.py419 except Exception:CODE
LOWcurl_cffi/requests/cache.py80 except Exception:CODE
Deep Nesting36 hits · 31 pts
SeverityFileLineSnippetContext
LOWbenchmark/ws_bench_2.py26CODE
LOWbenchmark/ws_bench_2.py177CODE
LOWtests/unittest/test_async_websockets.py2459CODE
LOWtests/unittest/conftest.py84CODE
LOWtests/unittest/test_requests.py1183CODE
LOWtests/unittest/test_requests.py1228CODE
LOWtests/pro/test_fp_verify.py57CODE
LOWexamples/websockets/simple_sub_sync.py8CODE
LOWexamples/websockets/long_running_sync.py5CODE
LOWexamples/websockets/simple_hft_sync.py8CODE
LOWcurl_cffi/_asyncio_selector.py168CODE
LOWcurl_cffi/curl.py386CODE
LOWcurl_cffi/aio.py260CODE
LOWcurl_cffi/fingerprints.py535CODE
LOWcurl_cffi/cli/run.py56CODE
LOWcurl_cffi/cli/parse.py45CODE
LOWcurl_cffi/cli/output.py205CODE
LOWcurl_cffi/requests/cookies.py137CODE
LOWcurl_cffi/requests/impersonate.py105CODE
LOWcurl_cffi/requests/streams.py208CODE
LOWcurl_cffi/requests/models.py182CODE
LOWcurl_cffi/requests/websockets.py516CODE
LOWcurl_cffi/requests/websockets.py732CODE
LOWcurl_cffi/requests/websockets.py975CODE
LOWcurl_cffi/requests/websockets.py1241CODE
LOWcurl_cffi/requests/websockets.py2285CODE
LOWcurl_cffi/requests/websockets.py2517CODE
LOWcurl_cffi/requests/websockets.py2642CODE
LOWcurl_cffi/requests/session.py862CODE
LOWcurl_cffi/requests/session.py1322CODE
LOWcurl_cffi/requests/utils.py70CODE
LOWcurl_cffi/requests/utils.py595CODE
LOWcurl_cffi/requests/headers.py84CODE
LOWcurl_cffi/requests/headers.py126CODE
LOWscripts/build.py30CODE
LOWscripts/check_preset.py27CODE
Self-Referential Comments7 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/ws_bench_utils.py109# Initialize config objectCOMMENT
MEDIUMtests/unittest/test_async_websockets.py3103 # Create a view starting at an odd offset (e.g., address ends in 1, 3, 7)COMMENT
MEDIUMcurl_cffi/_asyncio_selector.py125 # Create a thread to run the select system call. We manage this threadCOMMENT
MEDIUMcurl_cffi/_asyncio_selector.py299 # This class is a __getattribute__-based proxy. All attributes other than thoseCOMMENT
MEDIUMcurl_cffi/const.py1# This file is automatically generated, do not modify it directly.COMMENT
MEDIUMcurl_cffi/requests/websockets.py2819 # Create a task for the queue join operationCOMMENT
MEDIUMscripts/generate_consts.py20 f.write("# This file is automatically generated, do not modify it directly.\n\n")CODE
Modern Structural Boilerplate15 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/unittest/test_async_websockets.py285 def set_config(cfg: ServerConfig) -> None:CODE
LOWtests/unittest/test_sync_websockets.py211 def set_config(cfg: ServerConfig) -> None:CODE
LOWcurl_cffi/curl.py331 def _set_error_buffer(self) -> None:CODE
LOWcurl_cffi/curl.py892 def _setopt(self, option: CurlShareOpt, value: Any) -> None:CODE
LOWcurl_cffi/__init__.py1__all__ = [CODE
LOWcurl_cffi/aio.py13__all__ = ["AsyncCurl"]CODE
LOWcurl_cffi/fingerprints.py14__all__ = [CODE
LOWcurl_cffi/fingerprints.py485 def set_api_key(cls, api_key: str) -> None:CODE
LOWcurl_cffi/cli/__init__.py16__all__ = [CODE
LOWcurl_cffi/requests/cookies.py5__all__ = ["Cookies"]CODE
LOWcurl_cffi/requests/cookies.py222 def update_cookies_from_curl_changes(self, changes: list[bytes]) -> None:CODE
LOWcurl_cffi/requests/cache.py22__all__ = [CODE
LOWcurl_cffi/requests/__init__.py1__all__ = [CODE
LOWcurl_cffi/requests/utils.py3__all__ = ["HttpVersionLiteral", "set_curl_options", "NOT_SET"]CODE
LOWcurl_cffi/requests/errors.py3__all__ = ["CurlError", "RequestsError", "CookieConflict", "SessionClosed"]CODE
AI Structural Patterns12 hits · 10 pts
SeverityFileLineSnippetContext
LOWcurl_cffi/cli/request.py16CODE
LOWcurl_cffi/requests/websockets.py404CODE
LOWcurl_cffi/requests/websockets.py576CODE
LOWcurl_cffi/requests/websockets.py1523CODE
LOWcurl_cffi/requests/session.py226CODE
LOWcurl_cffi/requests/session.py651CODE
LOWcurl_cffi/requests/session.py862CODE
LOWcurl_cffi/requests/session.py1051CODE
LOWcurl_cffi/requests/session.py1412CODE
LOWcurl_cffi/requests/session.py1673CODE
LOWcurl_cffi/requests/session.py1853CODE
LOWcurl_cffi/requests/utils.py595CODE
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOWbenchmark/server.py21# gunicorn benchmark.server:app -b 127.0.0.1:8000 -n benchmark -w 8 -k \COMMENT
LOWtests/pro/test_fp_verify.py381 mismatches,COMMENT
LOWtests/pro/test_fp_verify.py401 # f"{CAPTURED_LABEL} path: {peet_header_path}",COMMENT
LOWffi/shim.h1#include <stdlib.h>COMMENT
LOWcurl_cffi/_asyncio_selector.py181 # this class is only intended for use on windows, whereCOMMENT
LOWcurl_cffi/requests/impersonate.py341 # 6683-10793:"UnassignedCOMMENT
LOWcurl_cffi/requests/impersonate.py361 # 47803-51913:"UnassignedCOMMENT
TODO Padding2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡tests/unittest/test_impersonate.py58# TODO: implement local ja3/akamai verification server with th1.COMMENT
LOWcurl_cffi/cli/run.py107 # TODO: implement body checkingCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/upload.py23# you can add multiple files under the same field nameCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcurl_cffi/aio.py260 def process_data(self, sockfd: int, ev_bitmask: int):CODE
LOWcurl_cffi/cli/request.py80def handle_request(CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbenchmark/ws_bench_utils.py237 # Write file to diskCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcurl_cffi/_asyncio_selector.py204 # polling the waker alone. If we are, just return to theCOMMENT