AI Slop Code Risk Monitor

capstone-engine/capstone

SlopCodeMonitor badge for capstone-engine/capstone Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for capstone-engine/capstone, a C project with 9,160 GitHub stars. SynthScan examined 1,165,915 lines of code across 3648 source files, recording 632 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 0.6 (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.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-27
Last Push
9.2K
Stars
C
Language
1.2M
Lines of Code
3.6K
Files
632
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 1.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

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

Agent Over-Engineering Ratio 0.9/100 · LOW

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

PR Review Velocity Impact 3.2/100 · LOW

Which changes need focused human review? 632 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 4MEDIUM 50LOW 578

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 632 distinct pattern matches across 13 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 Block271 hits · 270 pts
SeverityFileLineSnippetContext
LOWutils.h1/* Capstone Disassembly Engine */COMMENT
LOWMathExtras.h1//===-- llvm/Support/MathExtras.h - Useful math functions -------*- C++ -*-===//COMMENT
LOWMathExtras.h21#include "windowsce/intrin.h"COMMENT
LOWLEB128.h1//===- llvm/Support/LEB128.h - [SU]LEB128 utility functions -----*- C++ -*-===//COMMENT
LOWMCFixedLenDisassembler.h1//===-- llvm/MC/MCFixedLenDisassembler.h - Decoder driver -------*- C++ -*-===//COMMENT
LOWcs.c1/* Capstone Disassembly Engine */COMMENT
LOWcs.c21#if defined(_KERNEL_MODE)COMMENT
LOWcs.c41#endifCOMMENT
LOWcs.c61#include "arch/ARM/ARMModule.h"COMMENT
LOWcs.c281 CS_ARCH_CONFIG_ARM,COMMENT
LOWcs.c301 CS_ARCH_CONFIG_X86,COMMENT
LOWcs.c321 CS_ARCH_CONFIG_M68K,COMMENT
LOWcs.c341 CS_ARCH_CONFIG_MOS65XX,COMMENT
LOWcs.c381 },COMMENT
LOWcs.c401COMMENT
LOWcs.c421#endifCOMMENT
LOWcs.c441 | (1 << CS_ARCH_MOS65XX)COMMENT
LOWcs.c461#ifdef CAPSTONE_HAS_HPPACOMMENT
LOWMapping.h1/* Capstone Disassembly Engine */COMMENT
LOWMapping.h61/// Assumes the istruction operands map is called "insn_operands"COMMENT
LOWMapping.h281COMMENT
LOWMCInstrDesc.h1//===-- llvm/MC/MCInstrDesc.h - Instruction Descriptors -*- C++ -*-===//COMMENT
LOWMCInstrDesc.h21#include "MCRegisterInfo.h"COMMENT
LOWMCInstrDesc.h81 /// if the operand is a register. If isLookupPtrRegClass is set, then this isCOMMENT
LOWMCRegisterInfo.h1//=== MC/MCRegisterInfo.h - Target Register Description ---------*- C++ -*-===//COMMENT
LOWMCRegisterInfo.h61COMMENT
LOWMCInst.h1//===-- llvm/MC/MCInst.h - MCInst class -------------------------*- C++ -*-===//COMMENT
LOWSStream.c1/* Capstone Disassembly Engine */COMMENT
LOWutils.c1/* Capstone Disassembly Engine */COMMENT
LOWcs_simple_types.h301 CS_DATA_TYPE_iPTRAny = 250,COMMENT
LOWMCInst.c1/* Capstone Disassembly Engine */COMMENT
LOWMCRegisterInfo.c1//=== MC/MCRegisterInfo.cpp - Target Register Description -------*- C++ -*-===//COMMENT
LOWinclude/platform.h1/* Capstone Disassembly Engine */COMMENT
LOWinclude/platform.h21COMMENT
LOWinclude/platform.h41typedef signed int int32_t;COMMENT
LOWinclude/platform.h61COMMENT
LOWinclude/platform.h81#define PRIi32 "li"COMMENT
LOWinclude/platform.h101#define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i"COMMENT
LOWinclude/capstone/capstone.h1#ifndef CAPSTONE_ENGINE_HCOMMENT
LOWinclude/capstone/capstone.h21#include "cs_operand.h"COMMENT
LOWinclude/capstone/capstone.h41COMMENT
LOWinclude/capstone/capstone.h61// Capstone package versionCOMMENT
LOWinclude/capstone/capstone.h81// It is set to CS_VERSION_STABLE, if this code is part of a stable release.COMMENT
LOWinclude/capstone/capstone.h481 @return: return number of bytes to skip, or 0 to immediately stop disassembling.COMMENT
LOWinclude/capstone/capstone.h501 /// Arm: 2 bytes (Thumb mode) or 4 bytes.COMMENT
LOWinclude/capstone/capstone.h521 void *user_data;COMMENT
LOWinclude/capstone/capstone.h541#include "riscv.h"COMMENT
LOWinclude/capstone/capstone.h621COMMENT
LOWinclude/capstone/capstone.h641 /// This information is available even when CS_OPT_DETAIL = CS_OPT_OFFCOMMENT
LOWinclude/capstone/capstone.h661 /// False: The instruction decoded correctly and is valid.COMMENT
LOWinclude/capstone/mips.h1#ifndef CAPSTONE_MIPS_HCOMMENT
LOWinclude/capstone/sparc.h1#ifndef CAPSTONE_SPARC_HCOMMENT
LOWinclude/capstone/m68k.h1#ifndef CAPSTONE_M68K_HCOMMENT
LOWinclude/capstone/arm.h1#ifndef CAPSTONE_ARM_HCOMMENT
LOWinclude/capstone/arm.h1741#define ARM_CC_PL ARMCC_PLCOMMENT
LOWinclude/capstone/alpha.h1#ifndef CAPSTONE_ALPHA_HCOMMENT
LOWinclude/capstone/x86.h281#define X86_EFLAGS_MODIFY_IF (1ULL << 7)COMMENT
LOWinclude/capstone/x86.h301#define X86_EFLAGS_RESET_TF (1ULL << 27)COMMENT
LOWinclude/capstone/x86.h321#define X86_EFLAGS_TEST_RF (1ULL << 47)COMMENT
LOWinclude/capstone/x86.h341#define X86_FPU_FLAGS_RESET_C3 (1ULL << 7)COMMENT
211 more matches not shown…
Unused Imports210 hits · 210 pts
SeverityFileLineSnippetContext
LOWcontrib/objdump/objdump-m68k.py5CODE
LOWcontrib/objdump/objdump-m68k.py6CODE
LOWsuite/test_corpus3.py5CODE
LOWsuite/test_corpus3.py7CODE
LOWsuite/cstest/test/integration_tests.py7CODE
LOWsuite/auto-sync/src/autosync/Helper.py8CODE
LOW…-sync/src/autosync/cpptranslator/patches/ClassesDef.py4CODE
LOW…-sync/src/autosync/cpptranslator/patches/ClassesDef.py5CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/Assert.py6CODE
LOW…c/autosync/cpptranslator/patches/TemplateDefinition.py4CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/isUInt.py8CODE
LOW…/autosync/cpptranslator/patches/TemplateDeclaration.py4CODE
LOW…c/src/autosync/cpptranslator/patches/CreateOperand1.py8CODE
LOW…-sync/src/autosync/cpptranslator/patches/LLVM_DEBUG.py7CODE
LOW…-sync/src/autosync/cpptranslator/Tests/test_patches.py74CODE
LOWsuite/auto-sync/src/autosync/lit_config/lit.site.cfg.py6CODE
LOWbindings/const_generator.py3CODE
LOWbindings/python/tests/test_compatibility_layer.py7CODE
LOWbindings/python/tests/test_iter.py4CODE
LOWbindings/python/tests/test_skipdata.py5CODE
LOWbindings/python/tests/test_riscv_sysreg.py1CODE
LOWbindings/python/tests/test_riscv_sysreg.py2CODE
LOWbindings/python/tests/test_riscv_sysreg.py3CODE
LOWbindings/python/tests/test_lite.py4CODE
LOWbindings/python/tests/test_riscv_reg_access.py2CODE
LOWbindings/python/tests/test_riscv_reg_access.py3CODE
LOWbindings/python/tests/test_customized_mnem.py5CODE
LOWbindings/python/tests/test_customized_mnem.py6CODE
LOWbindings/python/capstone/aarch64_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/m680x_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/arc_const.py1CODE
LOWbindings/python/capstone/bpf.py6CODE
LOWbindings/python/capstone/tricore.py5CODE
LOWbindings/python/capstone/evm.py4CODE
LOWbindings/python/capstone/evm.py5CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/mips_const.py1CODE
LOWbindings/python/capstone/sparc.py5CODE
LOWbindings/python/capstone/sh_const.py1CODE
LOWbindings/python/capstone/sh_const.py1CODE
LOWbindings/python/capstone/sh_const.py1CODE
LOWbindings/python/capstone/sh_const.py1CODE
150 more matches not shown…
Decorative Section Separators46 hits · 142 pts
SeverityFileLineSnippetContext
MEDIUMtests/details/m68k.yaml1106 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1110 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1224 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1227 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1285 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1288 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1346 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1349 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1362 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1365 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1378 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1394 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1513 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1516 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1821 # ==========================================================================COMMENT
MEDIUMtests/details/m68k.yaml1824 # ==========================================================================COMMENT
MEDIUM⚡tests/details/riscv.yaml5057 # ==================================================================================================COMMENT
MEDIUM⚡tests/details/riscv.yaml5059 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/details/riscv.yaml5062 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml5017 # ==================================================================================================COMMENT
MEDIUMtests/details/riscv.yaml5422 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml5425 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml5534 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml5537 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml5686 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml5689 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6022 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6025 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6162 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6165 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6316 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6319 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6562 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6565 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6715 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUMtests/details/riscv.yaml6718 # --------------------------------------------------------------------------------------------------COMMENT
MEDIUM…sync/Tests/MCUpdaterTests/Disassembler/ARCH/test_a.txt4#------------------------------------------------------------------------------COMMENT
MEDIUM…sync/Tests/MCUpdaterTests/Disassembler/ARCH/test_a.txt6#------------------------------------------------------------------------------COMMENT
MEDIUM…/auto-sync/src/autosync/cpptranslator/CppTranslator.py142 AddOperand.__name__: 1, # ────────┘ The ones left are fixed with the `AddOperand` patch.CODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py156 Assert.__name__: 0, # ◁─────────┐ The llvm_unreachable calls are replaced with asserts.CODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py163 OutStreamParam.__name__: 0, # ◁──────┐ add_cs_detail() is added to printOperand functions with a certainCODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py166 AddCSDetail.__name__: 1, # ──────────┘CODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py167 NamespaceAnon.__name__: 0, # ◁─────┐ "llvm" and anonymous namespaces must be removed first,CODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py168 NamespaceLLVM.__name__: 0, # ◁─────┤ so they don't match in NamespaceArch.CODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py169 NamespaceArch.__name__: 1, # ──────┘CODE
MEDIUM⚡…/auto-sync/src/autosync/cpptranslator/CppTranslator.py174 ClassesDef.__name__: 0, # ◁────────┐ Declarations must be extracted first from the classes.CODE
Deep Nesting46 hits · 44 pts
SeverityFileLineSnippetContext
LOWcontrib/objdump/objdump-m68k.py302CODE
LOWsuite/test_corpus3.py10CODE
LOWsuite/auto-sync/src/autosync/HeaderPatcher.py107CODE
LOWsuite/auto-sync/src/autosync/HeaderPatcher.py253CODE
LOWsuite/auto-sync/src/autosync/HeaderPatcher.py320CODE
LOWsuite/auto-sync/src/autosync/Helper.py17CODE
LOWsuite/auto-sync/src/autosync/PathVarHandler.py22CODE
LOWsuite/auto-sync/src/autosync/IncGenerator.py86CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py386CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py429CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py468CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py544CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py804CODE
LOW…/auto-sync/src/autosync/cpptranslator/CppTranslator.py421CODE
LOW…o-sync/src/autosync/cpptranslator/TemplateCollector.py99CODE
LOW…o-sync/src/autosync/cpptranslator/TemplateCollector.py139CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/Helper.py148CODE
LOW…sync/src/autosync/cpptranslator/patches/AddCSDetail.py88CODE
LOW…c/src/autosync/cpptranslator/patches/FieldFromInstr.py34CODE
LOWbindings/const_generator.py133CODE
LOWbindings/python/tests/test_riscv_sysreg.py6CODE
LOWbindings/python/capstone/__init__.py1273CODE
LOWbindings/python/cstest_py/src/cstest_py/cstest.py84CODE
LOWbindings/python/cstest_py/src/cstest_py/cstest.py350CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py219CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py295CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py412CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py484CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py615CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py694CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py863CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py908CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py953CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py978CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1012CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1092CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1253CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1299CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1331CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1367CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1410CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1444CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1486CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1519CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1556CODE
LOWbindings/python/cstest_py/src/cstest_py/details.py1614CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHbindings/python/setup.py81except (IOError, OSError):CODE
HIGHbindings/python/capstone/__init__.py1887except:CODE
HIGHbindings/python/capstone/__init__.py1555except:CODE
HIGHbindings/python/capstone/__init__.py1586except: # _cs might be pulled from under our feetCODE
Hyper-Verbose Identifiers19 hits · 17 pts
SeverityFileLineSnippetContext
LOWsuite/auto-sync/src/autosync/HeaderPatcher.py176 def patch_riscv_compat_macros(header: Path) -> bool:CODE
LOWsuite/auto-sync/src/autosync/Helper.py162def test_only_overwrite_path_var(var_name: str, new_path: Path):CODE
LOWsuite/auto-sync/src/autosync/MCUpdater.py101 def get_legacy_mc_test_triple(self):CODE
LOWsuite/auto-sync/src/autosync/MCUpdater.py241 def get_fuzz_test_file_content(self, only_tests: bool) -> str:CODE
LOWsuite/auto-sync/src/autosync/Tests/test_mcupdater.py92 def multi_mode_unified_test_cases(self):CODE
LOWsuite/auto-sync/src/autosync/Tests/test_mcupdater.py118 def multi_mode_separated_test_cases(self):CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py65 def get_coordinates_from_node(node: Node):CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py697 def determine_patch_coordinates(CODE
LOW…/auto-sync/src/autosync/cpptranslator/CppTranslator.py471 def collect_template_instances(self):CODE
LOW…o-sync/src/autosync/cpptranslator/TemplateCollector.py205 def contains_template_dependent_param(CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/Helper.py12def get_function_params_of_node(n: Node) -> Node:CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/Helper.py53def template_param_list_to_dict(param_list: Node) -> [dict]:CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/Helper.py73def parameter_declaration_to_dict(param_decl: Node) -> dict:CODE
LOW…uto-sync/src/autosync/cpptranslator/Tests/test_unit.py22 def test_patching_constraints(self):CODE
LOW…-sync/src/autosync/cpptranslator/Tests/test_patches.py201 def test_constmcinstparameter(self):STRING
LOW…-sync/src/autosync/cpptranslator/Tests/test_patches.py240 def test_declarationinconditionclause(self):STRING
LOW…-sync/src/autosync/cpptranslator/Tests/test_patches.py385 def test_inlinetostaticinline(self):STRING
LOW…-sync/src/autosync/cpptranslator/Tests/test_patches.py483 def test_predicateblockfunctions(self):STRING
LOWbindings/python/tests/test_riscv_reg_access.py7 def test_riscv_syntax_detail_constants(self):CODE
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWsuite/auto-sync/src/autosync/MCUpdater.py74CODE
LOW…rc/autosync/cpptranslator/patches/MethodToFunctions.py45CODE
LOW…/cpptranslator/patches/DeclarationInConditionClause.py50CODE
LOW…sync/src/autosync/cpptranslator/patches/STParameter.py41CODE
LOW…ync/src/autosync/cpptranslator/patches/TemplateRefs.py41CODE
LOW…/src/autosync/cpptranslator/patches/GetRegFromClass.py44CODE
LOW…/autosync/cpptranslator/patches/MethodTypeQualifier.py40CODE
LOW…c/src/autosync/cpptranslator/patches/ReferencesDecl.py39CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/Helper.py145CODE
LOW…src/autosync/cpptranslator/patches/RegClassContains.py42CODE
LOW…auto-sync/src/autosync/cpptranslator/patches/isUInt.py45CODE
LOW…sync/src/autosync/cpptranslator/patches/GetRegClass.py45CODE
LOW…c/src/autosync/cpptranslator/patches/OutStreamParam.py44CODE
LOW…sync/src/autosync/cpptranslator/patches/STIArgument.py33CODE
LOW…/src/autosync/cpptranslator/patches/LLVMunreachable.py34CODE
Excessive Try-Catch Wrapping9 hits · 12 pts
SeverityFileLineSnippetContext
LOWsuite/test_corpus3.py171 except Exception as e:CODE
LOWsuite/run_tests.py38 except Exception as e:CODE
LOWsuite/auto-sync/src/autosync/cpptranslator/Differ.py1006 except Exception as e:CODE
MEDIUMbindings/const_generator.py216 print("Error: Unable to convert %s" % f)CODE
MEDIUMbindings/python/cstest_py/src/cstest_py/cstest.py119 print("Error messages:")CODE
LOW⚡bindings/python/cstest_py/src/cstest_py/cstest.py307 except Exception as e:CODE
LOW⚡bindings/python/cstest_py/src/cstest_py/cstest.py314 except Exception as e:CODE
LOW⚡bindings/python/cstest_py/src/cstest_py/cstest.py321 except Exception as e:CODE
LOWbindings/python/cstest_py/src/cstest_py/cstest.py411 except Exception as e:CODE
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
LOWcontrib/objdump/objdump-m68k.py200 # It's ok to just use PCMI here as is as we set base_reg to PC in the disassembler.COMMENT
LOW…c/src/autosync/cpptranslator/patches/FieldFromInstr.py51 # If function just return fieldFromInstruction(...)COMMENT
LOW…c/src/autosync/cpptranslator/patches/FieldFromInstr.py77 # Here we just create a function with the postfix fieldFromInstruction_w (for width).COMMENT
LOWbindings/python/tests/test_skipdata.py40 # Default "data" instruction's name is ".byte". To rename it to "db", just useCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMbindings/python/capstone/__init__.py1067# This function is faster than cs_disasm_quick() around 20% becauseCOMMENT
MEDIUMbindings/python/capstone/riscv_const.py6# This file is supposed to be generated automaticallyCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWMCInstPrinter.c231 // Here we need to check if a previous entry is of the same encodingCOMMENT
LOWMCInstPrinter.c270 // Here we need to check if a previous entry is of the same encodingCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsuite/auto-sync/src/autosync/Helper.py74 # Check if any child has a matching type.COMMENT
LOW…o-sync/src/autosync/cpptranslator/TemplateCollector.py151 # Check if this caller has a dependent template call.COMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbindings/python/setup.py14logger = logging.getLogger(__name__)CODE
LOWbindings/python/capstone/__init__.py5__all__ = [CODE