AI Slop Code RIsk Monitor

arvidn/libtorrent

an efficient feature complete C++ bittorrent implementation

5.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for arvidn/libtorrent, a C++ project with 6,090 GitHub stars. SynthScan examined 309,290 lines of code across 949 source files, recording 1416 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 5.1 (Moderate 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.

5.1
Adjusted Signal
5.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
6.1K
Stars
C++
Language
309.3K
Lines of Code
949
Files
1.4K
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 17.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.4/100 · LOW

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

Agent Over-Engineering Ratio 6.9/100 · LOW

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

PR Review Velocity Impact 24.2/100 · LOW

Which changes need focused human review? 1416 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 50MEDIUM 25LOW 1341

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 1416 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 Block1036 hits · 946 pts
SeverityFileLineSnippetContext
LOWtox.ini1[tox]COMMENT
LOWtox.ini41# numerous DeprecationWarnings are fired from builtin code, especiallyCOMMENT
LOWtools/parse_session_stats.py1#!/usr/bin/env python3COMMENT
LOWtools/parse_session_stats.py21# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THECOMMENT
LOWtools/parse_session_stats.py621 # (COMMENT
LOWtools/parse_session_stats.py921 "",COMMENT
LOWtools/run_benchmark.py861 )COMMENT
LOWtools/perf_call_tree.py1#!/usr/bin/env python3COMMENT
LOWtools/perf_call_tree.py21# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THECOMMENT
LOWtools/perf_call_tree.py121# ffffffff8100a1b2 some_function+0x12 (/path/to/dso)COMMENT
LOWtools/checking_benchmark.cpp41#include <string>COMMENT
LOWtools/benchmark_load_torrent.py61COMMENT
LOWtools/gen_corpus.py1#!/usr/bin/env python3COMMENT
LOWtools/gen_corpus.py21#COMMENT
LOWtools/gen_corpus.py641 # share_mode (ext_id 8 == share_mode_msg): 1-byte booleanCOMMENT
LOWtools/gen_corpus.py2861#COMMENT
LOWtools/gen_corpus.py2881# 6 bits : piece_priorities countCOMMENT
LOWtools/bencher.cpp21 "do_not_optimize() relies on GNU inline asm to act as a compiler optimization barrier, and is only supported on GCC andCOMMENT
LOWtools/bencher.cpp41#include "libtorrent/aux_/piece_picker.hpp"COMMENT
LOWtools/gen_torture_torrent.cpp21#include <fstream>COMMENT
LOWtools/gen_torture_torrent.cpp61 // takes the extension-pickup branch when added >= 240.COMMENT
LOWtools/gen_torture_torrent.cpp81 std::string symlink_mode = "file";COMMENT
LOWtools/benchmark_load_torrent.cpp1/*COMMENT
LOWtools/benchmark_load_torrent.cpp21// content printing (file list, trackers, info hash, web seeds, ...), noCOMMENT
LOWtools/vmstat.py221# Private_Dirty: 11384 kBCOMMENT
LOWtest/setup_transfer.cpp21#include <future>COMMENT
LOWtest/setup_transfer.cpp41#include "libtorrent/aux_/path.hpp"COMMENT
LOWtest/setup_transfer.cpp661void native_close(native_handle const h)COMMENT
LOWtest/test_receive_buffer.cpp221 // previous packetCOMMENT
LOWtest/broadcast_socket.hpp101 // and receive unicast responsesCOMMENT
LOWtest/test_file.cpp21#include "libtorrent/aux_/storage_utils.hpp"COMMENT
LOWtest/test_piece_picker.cpp721}COMMENT
LOWtest/test_torrent.cpp21#include "libtorrent/write_resume_data.hpp"COMMENT
LOWtest/test_storage.cpp21#include "libtorrent/aux_/mmap_storage.hpp"COMMENT
LOWtest/test_storage.cpp41#include "libtorrent/pread_disk_io.hpp"COMMENT
LOWtest/test_fast_extension.cpp21#include "libtorrent/time.hpp"COMMENT
LOWtest/test_webtorrent_transfer.cpp121 &ses1, &ses2, nullptr, true, use_metadata_transfer, false, suffix, piece_size, &atp);COMMENT
LOWtest/test_tracker.cpp21#include "test_utils.hpp"COMMENT
LOWtest/test_priority.cpp21#include "libtorrent/read_resume_data.hpp"COMMENT
LOWtest/test_remap_files.cpp21#include "settings.hpp"COMMENT
LOWtest/test_merkle.cpp1541 ah,COMMENT
LOWtest/test_ssl.cpp21COMMENT
LOWtest/swarm_suite.cpp21#include <iostream>COMMENT
LOWtest/test_dht_storage.cpp21#include "libtorrent/hex.hpp" // from_hexCOMMENT
LOWtest/test_file_storage.cpp1341 rf.rename_file(fs, 1_file, "test\\bar");COMMENT
LOWtest/test_similar_torrent.cpp1/*COMMENT
LOWtest/test_resume.cpp21#include "libtorrent/bencode.hpp"COMMENT
LOWtest/test_disk_cache.cpp801 f.flush_storage_for();COMMENT
LOWtest/test_create_torrent.cpp21#include "libtorrent/aux_/escape_string.hpp" // for convert_path_to_posixCOMMENT
LOWtest/test.hpp21#include <vector>COMMENT
LOWtest/test_utils.cpp21#ifdef _WIN32COMMENT
LOWtest/test_rtc.cpp21COMMENT
LOWtest/test_rtc.cpp341 if (stream1)COMMENT
LOWtest/test_copy_file.cpp21#include <iterator>COMMENT
LOWtest/test_dht.cpp21#include "libtorrent/kademlia/msg.hpp" // for verify_messageCOMMENT
LOWtest/test_disk_io.cpp1/*COMMENT
LOWtest/test_disk_io.cpp21#include "libtorrent/session_params.hpp" // for disk_io_constructor_typeCOMMENT
LOWtest/test_disk_io.cpp481{COMMENT
LOWtest/test_disk_io.cpp701COMMENT
LOWtest/web_seed_suite.cpp21#include "libtorrent/string_view.hpp"COMMENT
976 more matches not shown…
Empty Error Handlers37 hits · 185 pts
SeverityFileLineSnippetContext
HIGHtools/parse_session_stats.py118except Exception:CODE
HIGHtools/parse_session_stats.py136except Exception:CODE
HIGHtools/run_benchmark.py1263except Exception:CODE
HIGHtools/run_benchmark.py1268except Exception:CODE
HIGHtools/run_benchmark.py120except OSError:CODE
HIGHtools/gen_fwd.py111except FileNotFoundError:CODE
HIGHtools/parse_dht_log.py84except Exception:CODE
HIGHtools/parse_dht_log.py156except Exception:CODE
HIGHtools/perf_call_tree.py290except ValueError:CODE
HIGHtools/benchmark_checking.py62except Exception:CODE
HIGHtools/benchmark_checking.py111except Exception:CODE
HIGHtools/benchmark_checking.py116except Exception:CODE
HIGHtools/parse_lookup_log.py37except Exception:CODE
HIGHtest/web_server.py24except Exception:CODE
HIGHtest/web_server.py269except Exception:CODE
HIGHtest/web_server.py214except Exception:CODE
HIGHtest/web_server.py209except Exception:CODE
HIGHtest/socks.py52except Exception:CODE
HIGHdocs/gen_reference_doc.py823except Exception:CODE
HIGHexamples/run_benchmarks.py94except Exception:CODE
HIGHexamples/run_benchmarks.py116except Exception:CODE
HIGHexamples/run_benchmarks.py146except Exception:CODE
HIGHexamples/run_benchmarks.py150except Exception:CODE
HIGHexamples/run_benchmarks.py299except Exception:CODE
HIGHexamples/run_benchmarks.py393except Exception:CODE
HIGHexamples/run_benchmarks.py103except Exception:CODE
HIGHexamples/run_benchmarks.py167except Exception:CODE
HIGHexamples/run_benchmarks.py172except Exception:CODE
HIGHexamples/run_benchmarks.py254except Exception:CODE
HIGHexamples/run_benchmarks.py375except Exception:CODE
HIGHexamples/run_benchmarks.py266except Exception:CODE
HIGHexamples/run_benchmarks.py220except Exception:CODE
HIGHbindings/python/client.py379except Exception:CODE
HIGHbindings/python/tests/alert_test.py1841except FileNotFoundError:CODE
HIGHbindings/python/tests/alert_test.py1852except PermissionError:CODE
HIGHbindings/python/tests/alert_test.py1905except PermissionError:CODE
HIGHbindings/python/tests/client_test.py117except FileNotFoundError:CODE
Hyper-Verbose Identifiers161 hits · 146 pts
SeverityFileLineSnippetContext
LOWtools/run_benchmark.py203def _warn_if_ineffective_drop(path: Path) -> None:CODE
LOWtools/run_benchmark.py660def suggest_dirty_limit_if_high_ram() -> None:CODE
LOWtools/check_installed_headers.py20def check_no_vendored_headers(include_dir: str) -> None:CODE
LOWtools/check_installed_headers.py47def check_public_headers_compile(prefix: str) -> None:CODE
LOWtools/gen_corpus.py3262def generate_rtc_parse_endpoint(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3305def generate_rtc_tracker_offer(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3412def generate_dht_node_responses(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3497def generate_dht_get_peers_reply(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3536def generate_dht_get_item_reply(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3570def generate_dht_sample_infohashes_reply(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3613def generate_dht_put_item_request(outdir: str) -> None:CODE
LOWtest/socks.py278 def send_user_pass_auth_method(self):CODE
LOW⚡examples/run_benchmarks.py109def build_utorrent_commandline(config, port):CODE
LOW⚡examples/run_benchmarks.py157def build_rtorrent_commandline(config, port):CODE
LOW⚡examples/run_benchmarks.py181def build_libtorrent_commandline(config, port):CODE
LOWbindings/python/tests/simple_client_test.py69 def test_download_from_web_seed(self) -> None:CODE
LOWbindings/python/tests/sha256_hash_test.py18 def test_init_long_buffer_deprecated(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py910 def test_file_size_and_offset_match_file_storage(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py916 def test_num_files_and_pieces_match_file_storage(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py923 def test_file_flags_matches_file_storage(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py928 def test_file_absolute_path_matches_file_storage(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py933 def test_symlink_matches_file_storage(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py938 def test_root_matches_file_storage(self) -> None:CODE
LOW⚡bindings/python/tests/torrent_handle_test.py943 def test_invalid_index_raises_index_error(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py35 def test_deprecated_move_flags_t(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py80 def test_file_open_mode_deprecated(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py84 def test_file_progress_flags_t(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py156 def test_connect_and_get_info(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py319 def test_http_seeds_deprecated(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py565 def test_renamed_files_round_trip(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py829 def test_rename_file_and_export(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py841 def test_file_path_with_save_path(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py876 def test_import_then_export_roundtrip(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py888 def test_file_path_unrenamed_falls_back_to_file_storage(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py899 def test_file_name_unrenamed_falls_back_to_file_storage(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py964 def test_outlives_original_python_references(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py977 def test_custodian_and_ward_holds_references(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py1063 def test_old_sequential_download(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py15 def test_choking_algorithm_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py22 def test_seed_choking_algorithm_t(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py40 def test_io_buffer_mode_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py47 def test_bandwidth_mixed_algo_t(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py61 def test_enc_policy_deprecated(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py80 def test_enc_level_deprecated(self) -> None:CODE
LOWbindings/python/tests/session_settings_test.py110 def test_proxy_type_deprecated(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py24 def test_file_storage_static_vars(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py36 def test_create_torrent_static_vars(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py46 def test_create_torrent_flags_t(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py403 def test_set_hash_long_deprecated(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py419 def test_set_file_hash_invalid(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py438 def test_set_file_hash_long_deprecated(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py453 def test_http_seed_deprecated(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py571 def test_args_pred_positional(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py620 def test_args_pred_positional(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py691 def test_path_non_unicode_str(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py700 def test_path_non_unicode_bytes(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py718 def test_path_surrogate_bytes(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py790 def test_path_non_ascii_bytes(self) -> None:CODE
LOW⚡bindings/python/tests/create_torrent_test.py810 def test_path_surrogate_bytes(self) -> None:CODE
LOW⚡bindings/python/tests/create_torrent_test.py820 def test_path_non_unicode_str(self) -> None:CODE
101 more matches not shown…
Excessive Try-Catch Wrapping69 hits · 73 pts
SeverityFileLineSnippetContext
LOWtools/parse_session_stats.py79 except Exception as e:CODE
LOWtools/parse_session_stats.py118 except Exception:CODE
LOWtools/parse_session_stats.py136 except Exception:CODE
LOWtools/parse_session_stats.py155 except Exception:CODE
LOWtools/parse_session_stats.py179 except Exception:CODE
LOWtools/parse_session_stats.py205 except Exception:CODE
LOWtools/parse_session_stats.py228 except Exception:CODE
LOWtools/parse_session_stats.py968 except Exception:CODE
LOWtools/run_benchmark.py1263 except Exception:CODE
LOWtools/run_benchmark.py1268 except Exception:CODE
LOWtools/parse_dht_log.py84 except Exception:CODE
LOWtools/parse_dht_log.py156 except Exception:CODE
LOWtools/parse_dht_log.py161 except Exception as e:CODE
LOWtools/parse_sample.py30except Exception:CODE
LOWtools/clean.py78 except Exception as e:CODE
LOWtools/clean.py83 except Exception as e:CODE
LOWtools/test_filesystems.py110 except Exception:CODE
LOWtools/parse_utp_log.py30 except Exception:CODE
LOWtools/parse_utp_log.py146 except Exception:CODE
LOWtools/parse_utp_log.py220 except Exception:CODE
LOWtools/benchmark_checking.py62 except Exception:CODE
LOWtools/benchmark_checking.py111 except Exception:CODE
LOWtools/benchmark_checking.py116 except Exception:CODE
LOWtools/parse_lookup_log.py37 except Exception:CODE
MEDIUMtools/parse_lookup_log.py33def plot_nodes(nodes, frame):CODE
LOWtools/vmstat.py148 except Exception:CODE
LOWtools/vmstat.py245 except Exception:CODE
LOWtest/http_proxy.py273 except Exception:CODE
LOWtest/http_proxy.py286 except Exception:CODE
LOWtest/http_proxy.py472 except Exception:CODE
LOWtest/http_proxy.py481 except Exception:CODE
LOWtest/websocket_server.py61 except Exception as e:CODE
LOWtest/web_server.py24except Exception:CODE
LOWtest/web_server.py59 except Exception:CODE
LOW⚡test/web_server.py201 except Exception as e:CODE
LOW⚡test/web_server.py209 except Exception:CODE
LOW⚡test/web_server.py214 except Exception:CODE
LOW⚡test/web_server.py224 except Exception:CODE
LOWtest/web_server.py261 except Exception as e:CODE
LOWtest/web_server.py269 except Exception:CODE
MEDIUMtest/web_server.py56def do_GET(self):CODE
MEDIUMtest/web_server.py221def do_POST(self):CODE
LOWtest/socks.py52 except Exception:CODE
LOWtest/socks.py103 except Exception:CODE
LOWtest/socks.py219 except Exception as e:CODE
LOWtest/socks.py232 except Exception as e:CODE
LOWtest/socks.py245 except Exception as e:CODE
MEDIUMtest/socks.py100def handle(self):CODE
LOWdocs/gen_reference_doc.py823 except Exception:CODE
LOW⚡examples/run_benchmarks.py94except Exception:CODE
LOW⚡examples/run_benchmarks.py103 except Exception:CODE
LOW⚡examples/run_benchmarks.py116 except Exception:CODE
LOW⚡examples/run_benchmarks.py146 except Exception:CODE
LOW⚡examples/run_benchmarks.py150 except Exception:CODE
LOW⚡examples/run_benchmarks.py167 except Exception:CODE
LOW⚡examples/run_benchmarks.py172 except Exception:CODE
LOW⚡examples/run_benchmarks.py213 except Exception:CODE
LOW⚡examples/run_benchmarks.py216 except Exception:CODE
LOW⚡examples/run_benchmarks.py220 except Exception:CODE
LOWexamples/run_benchmarks.py60except Exception:CODE
9 more matches not shown…
Cross-Language Confusion11 hits · 72 pts
SeverityFileLineSnippetContext
HIGHtools/perf_call_tree.py572 var selected = null;CODE
HIGH⚡tools/perf_call_tree.py605 if (!ul) return null;CODE
HIGH⚡tools/perf_call_tree.py607 return li ? li.querySelector(':scope > .node') : null;CODE
HIGH⚡tools/perf_call_tree.py612 if (!ul || !ul.classList.contains('children')) return null;CODE
HIGH⚡tools/perf_call_tree.py620 while (el && el.parentNode) {CODE
HIGH⚡tools/perf_call_tree.py622 if (ul.classList && ul.classList.contains('children') && ul.hidden)CODE
HIGH⚡tools/perf_call_tree.py624 el = ul.closest ? ul.closest('li') : null;CODE
HIGHtools/perf_call_tree.py648 if (next >= 0 && next < vis.length) select(vis[next]);CODE
HIGHtools/gen_corpus.py2223 # not a dict: dict_find_dict() returns null, piece layers skippedCOMMENT
HIGHtools/benchmark_checking.py20 ret = os.system(f"cd ../examples && b2 release {args.toolset} stage_client_test stage_connection_tester")CODE
HIGHdocs/gen_todo.py16os.system('(cd .. ; ctags %s 2>/dev/null)' % ' '.join(paths))CODE
Decorative Section Separators12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMtools/benchmark_load_torrent.py62# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py64# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py312# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py314# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py334# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py336# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py617# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py619# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py824# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/benchmark_load_torrent.py826# ----------------------------------------------------------------------------COMMENT
MEDIUMdocs/gen_reference_doc.py1131# ====================================================================COMMENT
MEDIUMdocs/gen_reference_doc.py1135# ====================================================================COMMENT
Deep Nesting35 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/parse_session_stats.py94CODE
LOWtools/update_copyright.py9CODE
LOWtools/run_benchmark.py85CODE
LOWtools/run_benchmark.py169CODE
LOWtools/run_benchmark.py259CODE
LOWtools/run_benchmark.py660CODE
LOWtools/run_benchmark.py725CODE
LOWtools/run_benchmark.py963CODE
LOWtools/copyright.py70CODE
LOWtools/clean.py9CODE
LOWtools/disk_latency.py91CODE
LOWtools/perf_call_tree.py145CODE
LOWtools/perf_call_tree.py219CODE
LOWtools/set_version.py31CODE
LOWtools/vmstat.py310CODE
LOWtools/vmstat.py137CODE
LOWtools/libtorrent_lldb.py161CODE
LOWtest/http_proxy.py44CODE
LOWtest/http_proxy.py63CODE
LOWtest/http_proxy.py292CODE
LOWtest/web_server.py64CODE
LOWdocs/gen_reference_doc.py353CODE
LOWdocs/gen_reference_doc.py453CODE
LOWdocs/gen_reference_doc.py533CODE
LOWdocs/gen_reference_doc.py762CODE
LOWdocs/gen_todo.py32CODE
LOWexamples/run_benchmarks.py208CODE
LOWexamples/run_benchmarks.py259CODE
LOWbindings/python/client.py126CODE
LOWbindings/python/client.py168CODE
LOWbindings/python/client.py214CODE
LOWbindings/python/setup.py383CODE
LOWbindings/python/tests/tdummy.py126CODE
LOWbindings/python/tests/alert_test.py1829CODE
LOWbindings/python/tests/client_test.py92CODE
AI Slop Vocabulary7 hits · 20 pts
SeverityFileLineSnippetContext
LOWtest/http_proxy.py436 # through. Use this "hack" to pass through the encoding, and just useCOMMENT
MEDIUMinclude/libtorrent/torrent_flags.hpp152 // The behavior is more robust when setting this flag as part of addingCOMMENT
MEDIUMinclude/libtorrent/alert_types.hpp745 // This alert is generated when a peer is un-snubbed. Essentially when it was snubbed for stallingCOMMENT
MEDIUMinclude/libtorrent/settings_pack.hpp498 // likely to utilize all available bandwidth, and avoid havingCOMMENT
MEDIUMinclude/libtorrent/settings_pack.hpp1150 // time from this peer. The benefit of this is to better utilize diskCOMMENT
MEDIUMsimulation/test_http_connection.cpp262 // it has robust retry behavior (which the simple test proxy that comes withCOMMENT
MEDIUMbindings/python/setup.py122 # robust, and we trust it more. In case distutils gives empty results,COMMENT
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippetContext
LOWtest/test_slow_hash.cpp90 // Step 1: pre-create the file so the retried hash job can read block 1.COMMENT
LOWtest/test_slow_hash.cpp128 // Step 2: issue async_hash before inserting any block.COMMENT
LOW⚡test/test_slow_hash.cpp141 // Step 3: write block 0 without flush_piece so its buffer stays in cache.COMMENT
LOW⚡test/test_slow_hash.cpp151 // Step 4: wake hash thread B so it can pick up the hash job and park it.COMMENT
LOWinclude/libtorrent/aux_/receive_buffer.hpp83 // the purpose of this function is to free up and cut off all messagesCOMMENT
LOWfuzzers/src/pe_conn.cpp136 // Step 1: send our DH public key + PadA.COMMENT
LOWfuzzers/src/pe_conn.cpp149 // Step 2: read the server's DH public key (first 96 bytes).COMMENT
LOWfuzzers/src/pe_conn.cpp170 // Step 3: compute sync hash and obfuscated SKEY hash.COMMENT
LOWsrc/posix_storage.cpp360 // if some files have priority 0, we need to check if they exist on theCOMMENT
LOWsrc/receive_buffer.cpp149// the purpose of this function is to free up and cut off all messagesCOMMENT
LOWsrc/pread_storage.cpp247 // if some files have priority 0, we need to check if they exist on theCOMMENT
LOWsrc/mmap_storage.cpp348 // if some files have priority 0, we need to check if they exist on theCOMMENT
Unused Imports16 hits · 14 pts
SeverityFileLineSnippetContext
LOWtools/parse_dht_log.py4CODE
LOWtools/parse_utp_log.py4CODE
LOWtools/parse_lookup_log.py5CODE
LOWtools/parse_peer_log.py4CODE
LOWtools/parse_dht_rtt.py4CODE
LOWdocs/gen_reference_doc.py3CODE
LOWdocs/gen_stats_doc.py2CODE
LOWexamples/run_benchmarks.py3CODE
LOWbindings/python/client.py2CODE
LOWbindings/python/simple_client.py5CODE
LOWbindings/python/tests/simple_client_test.py20CODE
LOWbindings/python/tests/torrent_handle_test.py1CODE
LOWbindings/python/tests/create_torrent_test.py18CODE
LOWbindings/python/tests/alert_test.py29CODE
LOWbindings/python/tests/client_test.py22CODE
LOWbindings/python/tests/session_test.py19CODE
Structural Annotation Overuse7 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/test_slow_hash.cpp90 // Step 1: pre-create the file so the retried hash job can read block 1.COMMENT
LOWtest/test_slow_hash.cpp128 // Step 2: issue async_hash before inserting any block.COMMENT
LOW⚡test/test_slow_hash.cpp141 // Step 3: write block 0 without flush_piece so its buffer stays in cache.COMMENT
LOW⚡test/test_slow_hash.cpp151 // Step 4: wake hash thread B so it can pick up the hash job and park it.COMMENT
LOWfuzzers/src/pe_conn.cpp136 // Step 1: send our DH public key + PadA.COMMENT
LOWfuzzers/src/pe_conn.cpp149 // Step 2: read the server's DH public key (first 96 bytes).COMMENT
LOWfuzzers/src/pe_conn.cpp170 // Step 3: compute sync hash and obfuscated SKEY hash.COMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMbindings/python/tests/torrent_handle_test.py115 # Create a session and add a handleCOMMENT
MEDIUMbindings/python/tests/torrent_handle_test.py157 # Create a peer, to ensure get_peer_info returns somethingCOMMENT
MEDIUMbindings/python/tests/torrent_handle_test.py566 # Create a multi-file torrent named "test" so that renaming with theCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHtest/test_piece_picker.cpp144 // trying to mark a block as requested after it has been completedCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtest/http_proxy.py45Reads a chunked-encoded stream from a file-like object. This will read up to the end of the chunked encoding, incluSTRING
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtest/http_proxy.py209 # Check if Host header is present (useful for debugging libtorrentCOMMENT
LOWtest/http_proxy.py215 # Check if Host header matches CONNECT targetCOMMENT
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/gen_corpus.py1088CODE
LOWtools/gen_corpus.py2980CODE
LOWexamples/run_benchmarks.py224CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtools/check_installed_headers.py9# Usage:COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinclude/libtorrent/aux_/torrent.hpp1408 // member functions. Don't forget to also call peers_erased()COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/kademlia/item.cpp133 // TODO: implement ctor for entry from bdecode_node?COMMENT