Repository Analysis

arvidn/libtorrent

an efficient feature complete C++ bittorrent implementation

4.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of arvidn/libtorrent, a C++ project with 5,979 GitHub stars. SynthScan v2.0 examined 298,313 lines of code across 931 source files, recording 1325 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 4.6 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.0K
Stars
C++
Language
298.3K
Lines of Code
931
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 13MEDIUM 26LOW 1286

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1325 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block998 hits · 910 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/benchmark_load_torrent.py61COMMENT
LOWtools/gen_corpus.py1#!/usr/bin/env python3COMMENT
LOWtools/gen_corpus.py21#COMMENT
LOWtools/gen_corpus.py621 c.add("share_mode_true", FLAGS_EXTENDED, ext_msg(SHARE_MODE_MSG, b"\x01"))COMMENT
LOWtools/gen_corpus.py2781COMMENT
LOWtools/gen_corpus.py2801# 6 bits : verified_pieces bit-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/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 "libtorrent/hasher.hpp"COMMENT
LOWtest/setup_transfer.cpp41#include "setup_transfer.hpp"COMMENT
LOWtest/test_receive_buffer.cpp221 // previous packetCOMMENT
LOWtest/broadcast_socket.hpp101 // and receive unicast responsesCOMMENT
LOWtest/test_piece_picker.cpp721}COMMENT
LOWtest/test_torrent.cpp21#include "libtorrent/alert_types.hpp"COMMENT
LOWtest/test_storage.cpp21#include "libtorrent/aux_/mmap_storage.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_ssl.cpp21COMMENT
LOWtest/swarm_suite.cpp21#include <iostream>COMMENT
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_rtc.cpp21COMMENT
LOWtest/test_rtc.cpp341 if (stream1)COMMENT
LOWtest/test_dht.cpp21#include "libtorrent/kademlia/msg.hpp" // for verify_messageCOMMENT
LOWtest/test_dht.cpp2941 // test a node with the same IP:port changing IDCOMMENT
LOWtest/test_disk_io.cpp1/*COMMENT
LOWtest/test_disk_io.cpp461// partial cases check the two halves are stitched together correctly.COMMENT
LOWtest/test_disk_io.cpp661 if (p == fence_piece) continue;COMMENT
LOWtest/web_seed_suite.cpp21#include "libtorrent/string_view.hpp"COMMENT
LOWtest/test_torrent_info.cpp21#include "libtorrent/aux_/path.hpp"COMMENT
LOWtest/test_torrent_info.cpp481// TODO: torrent with 'l' (symlink) attributeCOMMENT
LOWtest/test_torrent_info.cpp1681{COMMENT
LOWtest/test_checking.cpp21#include "test_utils.hpp"COMMENT
LOWtest/test_merkle_tree.cpp961 // the set_block above ran allocate_full(), bringing us back to full_treeCOMMENT
LOWtest/main.cpp21#include "test.hpp"COMMENT
LOWtest/disk_io_test.hpp21COMMENT
LOWtest/disk_io_test.hpp41// Registers one test per disk I/O backend (mmap_disk_io_constructor whereCOMMENT
LOWtest/test_slow_hash.cpp21COMMENT
LOWtest/test_slow_hash.cpp41#include "libtorrent/error_code.hpp"COMMENT
938 more matches not shown…
Hyper-Verbose Identifiers144 hits · 130 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.py3184def generate_rtc_parse_endpoint(outdir: str) -> None:CODE
LOWtools/gen_corpus.py3227def generate_rtc_tracker_offer(outdir: str) -> None:CODE
LOWtest/socks.py278 def send_user_pass_auth_method(self):CODE
LOWexamples/run_benchmarks.py109def build_utorrent_commandline(config, port):CODE
LOWexamples/run_benchmarks.py157def build_rtorrent_commandline(config, port):CODE
LOWexamples/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
LOWbindings/python/tests/torrent_handle_test.py33 def test_deprecated_move_flags_t(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py78 def test_file_open_mode_deprecated(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py82 def test_file_progress_flags_t(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py154 def test_connect_and_get_info(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py317 def test_http_seeds_deprecated(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py563 def test_renamed_files_round_trip(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py827 def test_rename_file_and_export(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py839 def test_file_path_with_save_path(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py874 def test_import_then_export_roundtrip(self) -> None:CODE
LOWbindings/python/tests/torrent_handle_test.py947 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
LOWbindings/python/tests/create_torrent_test.py810 def test_path_surrogate_bytes(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py820 def test_path_non_unicode_str(self) -> None:CODE
LOWbindings/python/tests/create_torrent_test.py830 def test_path_non_unicode_bytes(self) -> None:CODE
LOWbindings/python/tests/alert_test.py64 def test_category_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/alert_test.py152 def test_listen_succeeded_alert_socket_type_t(self) -> None:CODE
LOWbindings/python/tests/alert_test.py162 def test_listen_succeeded_alert_socket_type_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/alert_test.py183 def test_listen_failed_alert_socket_type_t(self) -> None:CODE
LOWbindings/python/tests/alert_test.py193 def test_listen_failed_alert_socket_type_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/alert_test.py221 def test_socket_type_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/alert_test.py234 def test_performance_warning_t(self) -> None:CODE
LOWbindings/python/tests/alert_test.py258 def test_performance_warning_t_deprecated(self) -> None:CODE
LOWbindings/python/tests/alert_test.py281 def test_stats_channel_deprecated(self) -> None:CODE
LOWbindings/python/tests/alert_test.py564 def test_torrent_removed_alert(self) -> None:CODE
LOWbindings/python/tests/alert_test.py672class LambdaRequestHandler(http.server.BaseHTTPRequestHandler):CODE
LOWbindings/python/tests/alert_test.py781 def test_tracker_warning_alert(self) -> None:CODE
LOWbindings/python/tests/alert_test.py829 def test_hash_failed_alert_test(self) -> None:CODE
LOWbindings/python/tests/alert_test.py862 def test_invalid_request_alert(self) -> None:CODE
LOWbindings/python/tests/alert_test.py892 def test_torrent_finished_alert(self) -> None:CODE
84 more matches not shown…
Excessive Try-Catch Wrapping70 hits · 82 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.py103 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.py272 except Exception:CODE
LOWtest/http_proxy.py285 except Exception:CODE
LOWtest/http_proxy.py471 except Exception:CODE
LOWtest/http_proxy.py480 except Exception:CODE
LOWtest/websocket_server.py39 except Exception as e:CODE
MEDIUMtest/websocket_server.py20def handle(websocket):CODE
LOWtest/web_server.py23except Exception:CODE
LOWtest/web_server.py47 except Exception:CODE
LOWtest/web_server.py189 except Exception as e:CODE
LOWtest/web_server.py197 except Exception:CODE
LOWtest/web_server.py202 except Exception:CODE
LOWtest/web_server.py212 except Exception:CODE
LOWtest/web_server.py249 except Exception as e:CODE
LOWtest/web_server.py257 except Exception:CODE
MEDIUMtest/web_server.py44def do_GET(self):CODE
MEDIUMtest/web_server.py209def 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
LOWexamples/run_benchmarks.py94except Exception:CODE
LOWexamples/run_benchmarks.py103 except Exception:CODE
LOWexamples/run_benchmarks.py116 except Exception:CODE
LOWexamples/run_benchmarks.py146 except Exception:CODE
LOWexamples/run_benchmarks.py150 except Exception:CODE
LOWexamples/run_benchmarks.py167 except Exception:CODE
LOWexamples/run_benchmarks.py172 except Exception:CODE
LOWexamples/run_benchmarks.py213 except Exception:CODE
LOWexamples/run_benchmarks.py216 except Exception:CODE
LOWexamples/run_benchmarks.py220 except Exception:CODE
10 more matches not shown…
Cross-Language Confusion11 hits · 72 pts
SeverityFileLineSnippetContext
HIGHtools/perf_call_tree.py541 var selected = null;CODE
HIGHtools/perf_call_tree.py574 if (!ul) return null;CODE
HIGHtools/perf_call_tree.py576 return li ? li.querySelector(':scope > .node') : null;CODE
HIGHtools/perf_call_tree.py581 if (!ul || !ul.classList.contains('children')) return null;CODE
HIGHtools/perf_call_tree.py589 while (el && el.parentNode) {CODE
HIGHtools/perf_call_tree.py591 if (ul.classList && ul.classList.contains('children') && ul.hidden)CODE
HIGHtools/perf_call_tree.py593 el = ul.closest ? ul.closest('li') : null;CODE
HIGHtools/perf_call_tree.py617 if (next >= 0 && next < vis.length) select(vis[next]);CODE
HIGHtools/gen_corpus.py2145 # 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.py1130# ====================================================================COMMENT
MEDIUMdocs/gen_reference_doc.py1134# ====================================================================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.py115CODE
LOWtools/perf_call_tree.py189CODE
LOWtools/set_version.py31CODE
LOWtools/vmstat.py310CODE
LOWtools/vmstat.py137CODE
LOWtools/libtorrent_lldb.py161CODE
LOWtest/http_proxy.py43CODE
LOWtest/http_proxy.py62CODE
LOWtest/http_proxy.py291CODE
LOWtest/web_server.py52CODE
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.py435 # 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.hpp494 // likely to utilize all available bandwidth, and avoid havingCOMMENT
MEDIUMinclude/libtorrent/settings_pack.hpp1122 // time from this peer. The benefit of this is to better utilize diskCOMMENT
MEDIUMsimulation/test_http_connection.cpp253 // 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.cpp86 // Step 1: pre-create the file so the retried hash job can read block 1.COMMENT
LOWtest/test_slow_hash.cpp124 // Step 2: issue async_hash before inserting any block.COMMENT
LOWtest/test_slow_hash.cpp137 // Step 3: write block 0 without flush_piece so its buffer stays in cache.COMMENT
LOWtest/test_slow_hash.cpp147 // 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.cpp137 // Step 1: send our DH public key + PadA.COMMENT
LOWfuzzers/src/pe_conn.cpp150 // Step 2: read the server's DH public key (first 96 bytes).COMMENT
LOWfuzzers/src/pe_conn.cpp172 // Step 3: compute sync hash and obfuscated SKEY hash.COMMENT
LOWsrc/posix_storage.cpp408 // 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.cpp240 // 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.py18CODE
Structural Annotation Overuse7 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/test_slow_hash.cpp86 // Step 1: pre-create the file so the retried hash job can read block 1.COMMENT
LOWtest/test_slow_hash.cpp124 // Step 2: issue async_hash before inserting any block.COMMENT
LOWtest/test_slow_hash.cpp137 // Step 3: write block 0 without flush_piece so its buffer stays in cache.COMMENT
LOWtest/test_slow_hash.cpp147 // Step 4: wake hash thread B so it can pick up the hash job and park it.COMMENT
LOWfuzzers/src/pe_conn.cpp137 // Step 1: send our DH public key + PadA.COMMENT
LOWfuzzers/src/pe_conn.cpp150 // Step 2: read the server's DH public key (first 96 bytes).COMMENT
LOWfuzzers/src/pe_conn.cpp172 // Step 3: compute sync hash and obfuscated SKEY hash.COMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMbindings/python/tests/torrent_handle_test.py113 # Create a session and add a handleCOMMENT
MEDIUMbindings/python/tests/torrent_handle_test.py155 # Create a peer, to ensure get_peer_info returns somethingCOMMENT
MEDIUMbindings/python/tests/torrent_handle_test.py564 # 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.py44Reads 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.py208 # Check if Host header is present (useful for debugging libtorrentCOMMENT
LOWtest/http_proxy.py214 # Check if Host header matches CONNECT targetCOMMENT
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/gen_corpus.py1010CODE
LOWtools/gen_corpus.py2902CODE
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.hpp1336 // member functions. Don't forget to also call peers_erased()COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/kademlia/item.cpp120 // TODO: implement ctor for entry from bdecode_node?COMMENT