AI Slop Code RIsk Monitor

swig/swig

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

6.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for swig/swig, a SWIG project with 6,330 GitHub stars. SynthScan examined 284,486 lines of code across 3377 source files, recording 787 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 6.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.

6.1
Adjusted Signal
6.1
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
6.3K
Stars
SWIG
Language
284.5K
Lines of Code
3.4K
Files
787
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 6.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 8.7/100 · LOW

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

Agent Over-Engineering Ratio 14.3/100 · LOW

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

PR Review Velocity Impact 29.7/100 · MEDIUM

Which changes need focused human review? 787 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 10HIGH 193MEDIUM 82LOW 502

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 787 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.

Empty Error Handlers160 hits · 735 pts
SeverityFileLineSnippetContext
HIGHExamples/python/exceptproxy/runme.py25except example.EmptyError as e:CODE
HIGHExamples/python/exceptproxy/runme.py44except example.EmptyError as e:CODE
HIGHExamples/test-suite/python/swig_test_utils.py155except exc_cls:CODE
HIGHExamples/test-suite/python/li_std_vector_extra_runme.py143except:CODE
HIGHExamples/test-suite/python/li_std_vector_extra_runme.py164except:CODE
HIGHExamples/test-suite/python/director_exception_runme.py45except TypeError:CODE
HIGHExamples/test-suite/python/director_exception_runme.py90except Exception2:CODE
HIGHExamples/test-suite/python/director_exception_runme.py95except Exception1:CODE
HIGHExamples/test-suite/python/li_std_wstring_runme.py26except TypeError as e:CODE
HIGHExamples/test-suite/python/li_std_wstring_runme.py74except TypeError:CODE
HIGHExamples/test-suite/python/unicode_strings_runme.py17except TypeError as e:CODE
HIGHExamples/test-suite/python/threads_exception_runme.py6except RuntimeError as e:CODE
HIGHExamples/test-suite/python/threads_exception_runme.py37except RuntimeError as e:CODE
HIGHExamples/test-suite/python/threads_exception_runme.py39except threads_exception.Exc as e:CODE
HIGHExamples/test-suite/python/li_boost_shared_ptr_runme.py159except TypeError:CODE
HIGHExamples/test-suite/python/li_boost_shared_ptr_runme.py168except TypeError:CODE
HIGHExamples/test-suite/python/li_boost_shared_ptr_runme.py479except TypeError:CODE
HIGHExamples/test-suite/python/li_boost_shared_ptr_runme.py517except TypeError:CODE
HIGHExamples/test-suite/python/li_boost_shared_ptr_runme.py551except TypeError:CODE
HIGHExamples/test-suite/python/cpp11_std_array_runme.py30except ValueError as e:CODE
HIGHExamples/test-suite/python/cpp11_std_array_runme.py47except ValueError as e:CODE
HIGHExamples/test-suite/python/cpp11_std_array_runme.py55except TypeError as e:CODE
HIGHExamples/test-suite/python/cpp11_std_array_runme.py63except TypeError as e:CODE
HIGHExamples/test-suite/python/kwargs_feature_runme.py106except TypeError as e:CODE
HIGHExamples/test-suite/python/kwargs_feature_runme.py114except TypeError as e:CODE
HIGHExamples/test-suite/python/kwargs_feature_runme.py120except TypeError as e:CODE
HIGHExamples/test-suite/python/kwargs_feature_runme.py126except TypeError as e:CODE
HIGHExamples/test-suite/python/kwargs_feature_runme.py135except TypeError as e:CODE
HIGHExamples/test-suite/python/kwargs_feature_runme.py141except TypeError as e:CODE
HIGHExamples/test-suite/python/li_std_vector_ptr_runme.py45except TypeError:CODE
HIGH…ples/test-suite/python/li_std_except_as_class_runme.py8except RuntimeError:CODE
HIGH…ples/test-suite/python/li_std_except_as_class_runme.py12except RuntimeError:CODE
HIGH…ples/test-suite/python/li_std_except_as_class_runme.py16except RuntimeError:CODE
HIGH…ples/test-suite/python/li_std_except_as_class_runme.py22except domain_error:CODE
HIGH…ples/test-suite/python/li_std_except_as_class_runme.py26except logic_error:CODE
HIGH…ples/test-suite/python/li_std_except_as_class_runme.py30except exception:CODE
HIGHExamples/test-suite/python/argcargvtest_runme.py106except IndexError: # Race conditionCODE
HIGHExamples/test-suite/python/contract_runme.py7except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py14except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py22except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py29except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py37except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py44except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py52except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py58except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py65except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py71except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py78except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py86except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py91except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py96except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py101except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py106except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py113except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py118except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py123except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py128except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py133except RuntimeError:CODE
HIGHExamples/test-suite/python/contract_runme.py141except RuntimeError:CODE
HIGHExamples/test-suite/python/li_std_set_runme.py26except StopIteration as e:CODE
100 more matches not shown…
Unused Imports317 hits · 316 pts
SeverityFileLineSnippetContext
LOWTools/mkdist.py6CODE
LOWTools/mkrelease.py5CODE
LOWExamples/python/varargs/runme.py3CODE
LOWExamples/python/import_packages/from_init1/runme.py15CODE
LOW…python/import_packages/from_init1/py3/pkg2/__init__.py1CODE
LOW…amples/python/import_packages/relativeimport2/runme.py15CODE
LOWExamples/python/import_packages/module_is_init/runme.py2CODE
LOW…amples/python/import_packages/relativeimport3/runme.py15CODE
LOW…amples/python/import_packages/relativeimport1/runme.py15CODE
LOWExamples/python/import_packages/from_init2/runme.py15CODE
LOW…python/import_packages/from_init2/py3/pkg2/__init__.py1CODE
LOWExamples/python/import_packages/from_init3/runme.py15CODE
LOW…python/import_packages/from_init3/py3/pkg2/__init__.py1CODE
LOWExamples/test-suite/python/cpp_static_runme.py1CODE
LOW…/test-suite/python/cpp17_using_pack_expansion_runme.py1CODE
LOW…st-suite/python/using_member_typedef_overload_runme.py1CODE
LOWExamples/test-suite/python/profiletest_runme.py1CODE
LOW…test-suite/python/cpp11_rvalue_reference_move_runme.py1CODE
LOWExamples/test-suite/python/constructor_rename_runme.py1CODE
LOWExamples/test-suite/python/array_member_runme.py1CODE
LOW…mples/test-suite/python/smart_pointer_typedef_runme.py1CODE
LOWExamples/test-suite/python/li_std_vector_extra_runme.py1CODE
LOWExamples/test-suite/python/python_pickle_runme.py4CODE
LOW…mples/test-suite/python/rename_rstrip_encoder_runme.py1CODE
LOWExamples/test-suite/python/input_runme.py1CODE
LOW…uite/python/cpp11_variadic_function_templates_runme.py1CODE
LOWExamples/test-suite/python/director_exception_runme.py1CODE
LOWExamples/test-suite/python/cpp20_concepts_runme.py1CODE
LOWExamples/test-suite/python/empty_runme.py1CODE
LOW…les/test-suite/python/template_typedef_import_runme.py1CODE
LOW…les/test-suite/python/template_typedef_import_runme.py2CODE
LOWExamples/test-suite/python/typemap_namespace_runme.py1CODE
LOW…est-suite/python/li_boost_shared_ptr_director_runme.py1CODE
LOW…amples/test-suite/python/cpp11_std_unique_ptr_runme.py1CODE
LOW…s/test-suite/python/template_class_reuse_name_runme.py1CODE
LOWExamples/test-suite/python/virtual_derivation_runme.py1CODE
LOWExamples/test-suite/python/template_ns4_runme.py1CODE
LOWExamples/test-suite/python/default_arg_values_runme.py1CODE
LOWExamples/test-suite/python/refcount_runme.py1CODE
LOW…ite/python/cpp17_noexcept_function_type_alias_runme.py1CODE
LOWExamples/test-suite/python/cpp14_decltype_auto_runme.py1CODE
LOW…ples/test-suite/python/cpp17_u8_char_literals_runme.py1CODE
LOW…test-suite/python/using_nested_member_typedef_runme.py1CODE
LOW…suite/python/cpp11_director_using_constructor_runme.py1CODE
LOW…/test-suite/python/doxygen_translate_all_tags_runme.py3CODE
LOW…/test-suite/python/doxygen_translate_all_tags_runme.py4CODE
LOWExamples/test-suite/python/overload_numeric_runme.py2CODE
LOWExamples/test-suite/python/overload_numeric_runme.py3CODE
LOW…ples/test-suite/python/overload_template_fast_runme.py1CODE
LOW…les/test-suite/python/cpp11_shared_ptr_upcast_runme.py1CODE
LOWExamples/test-suite/python/li_std_wstream_runme.py1CODE
LOWExamples/test-suite/python/director_shared_ptr_runme.py1CODE
LOWExamples/test-suite/python/director_nested_runme.py1CODE
LOWExamples/test-suite/python/li_boost_shared_ptr_runme.py2CODE
LOW…st-suite/python/using_member_typedef_template_runme.py1CODE
LOW…/python/cpp17_auto_nontype_template_parameter_runme.py1CODE
LOWExamples/test-suite/python/li_typemaps_runme.py1CODE
LOWExamples/test-suite/python/smart_pointer_multi_runme.py1CODE
LOWExamples/test-suite/python/name_warnings_runme.py1CODE
LOW…ples/test-suite/python/smart_pointer_overload_runme.py1CODE
257 more matches not shown…
Over-Commented Block142 hits · 142 pts
SeverityFileLineSnippetContext
LOWCCache/snprintf.c61COMMENT
LOWCCache/snprintf.c81 /* make the compiler happy with an empty file */COMMENT
LOWCCache/snprintf.c121/* format flags - Bits */COMMENT
LOWCCache/ccache.h1#include "ccache_swig_config.h"COMMENT
LOWCCache/ccache.h21 #include <sys/mman.h>COMMENT
LOWCCache/ccache.h41#endifCOMMENT
LOWTools/checkwarnings.py1#!/usr/bin/env python3COMMENT
LOWTools/checkwarnings.py21import reCOMMENT
LOWTools/ci-repro/run.sh1#!/bin/bashCOMMENT
LOWSource/DOH/doh.h41COMMENT
LOWSource/DOH/doh.h61#define DohSortedKeys DOH_NAMESPACE(SortedKeys)COMMENT
LOWSource/DOH/doh.h81#define DohUngetc DOH_NAMESPACE(Ungetc)COMMENT
LOWSource/DOH/doh.h101#define DohNewStringEmpty DOH_NAMESPACE(NewStringEmpty)COMMENT
LOWSource/DOH/doh.h121#define DohObjFree DOH_NAMESPACE(ObjFree)COMMENT
LOWSource/DOH/doh.h381#define Setattr DohSetattrCOMMENT
LOWSource/DOH/doh.h401#define Write DohWriteCOMMENT
LOWSource/DOH/doh.h421#define GetDouble DohGetDoubleCOMMENT
LOWSource/DOH/doh.h441#define NewStringEmpty DohNewStringEmptyCOMMENT
LOWSource/DOH/doh.h461#define Setmark DohSetmarkCOMMENT
LOWSource/Swig/swig.h61COMMENT
LOWSource/Swig/swig.h81COMMENT
LOWSource/Swig/swigscan.h41COMMENT
LOWSource/Swig/swigscan.h61#define SWIG_TOKEN_INT 19 /* 314 */COMMENT
LOWSource/Swig/swigscan.h81#define SWIG_TOKEN_ILLEGAL 99COMMENT
LOWSource/Swig/swigscan.h101#define SWIG_TOKEN_LNOT 118 /* ! */COMMENT
LOWSource/Include/swigwarn.h61COMMENT
LOWSource/Include/swigwarn.h81/* Unused since 1.3.18: #define WARN_PARSE_TEMPLATE_PARTIAL 311 */COMMENT
LOWSource/Include/swigwarn.h101#define WARN_PARSE_TEMPLATE_NESTED 331COMMENT
LOWSource/Include/swigwarn.h121#define WARN_IGNORE_OPERATOR_MOD 356 /* % */COMMENT
LOWSource/Include/swigwarn.h141#define WARN_IGNORE_OPERATOR_RSHIFTEQ 376 /* >>= */COMMENT
LOWSource/Include/swigwarn.h161#define WARN_IGNORE_OPERATOR_REF 396 /* operator *() */COMMENT
LOWSource/Include/swigwarn.h181COMMENT
LOWSource/Include/swigwarn.h201COMMENT
LOWSource/Include/swigwarn.h221#define WARN_LANG_DISCARD_CONST 515COMMENT
LOWSource/Include/swigwarn.h241#define WARN_DOXYGEN_COMMAND_ERROR 564COMMENT
LOWSource/Include/swigwarn.h301#define WARN_JAVA_TYPEMAP_JAVAOUT_UNDEF 817COMMENT
LOWSource/Include/swigwarn.h321#define WARN_CSHARP_TYPEMAP_CSBODY_UNDEF 836COMMENT
LOW.agents/skills/swig-test/test-configured-languages.sh1#!/bin/bashCOMMENT
LOW.agents/skills/swig-test/test-configured-languages.sh21# TARGET is a test-suite make target including its suffix, for example:COMMENT
LOW.agents/skills/swig-test/test-configured-languages.sh41# else c++17. The C standard is derived from it as CICOMMENT
LOWExamples/perl5/extend/runme.pl41COMMENT
LOWExamples/go/extend/runme.go21 // Create a new EmployeeList instance. This class does notCOMMENT
LOWExamples/go/extend/runme.go41 // Employee*. Previously, Go resolved the call immediately inCOMMENT
LOWExamples/go/director/director.go21// The IsFooBarGo method ensures that FooBarGo is a superset of FooBarAbstract.COMMENT
LOWExamples/python/extend/runme.py41e = e.__disown__()COMMENT
LOW…les/python/import_packages/same_modnames1/pkg2/foo.hpp1#ifndef PKG2_FOO_HPPCOMMENT
LOW…les/python/import_packages/same_modnames1/pkg1/foo.hpp1#ifndef PKG1_FOO_HPPCOMMENT
LOW…les/python/import_packages/from_init1/py3/pkg2/foo.hpp1#ifndef PY3_PKG2_FOO_HPPCOMMENT
LOW…les/python/import_packages/from_init1/py3/pkg2/bar.hpp1#ifndef PY3_PKG2_BAR_HPPCOMMENT
LOW…ython/import_packages/relativeimport2/py3/pkg2/bar.hpp1#ifndef PY3_PKG2_HPPCOMMENT
LOW…rt_packages/relativeimport2/py3/pkg2/pkg3/pkg4/foo.hpp1#ifndef PY3_PKG2_PKG3_PKG4COMMENT
LOW…ython/import_packages/relativeimport3/py3/pkg2/bar.hpp1#ifndef PY3_PKG2_BAR_HPPCOMMENT
LOW…/import_packages/relativeimport3/py3/pkg2/pkg3/foo.hpp1#ifndef PY3_PKG2_PKG3_FOO_HPPCOMMENT
LOW…les/python/import_packages/same_modnames2/pkg1/foo.hpp1#ifndef PKG1_FOO_HPPCOMMENT
LOW…ython/import_packages/same_modnames2/pkg1/pkg2/foo.hpp1#ifndef PKG1_PKG2_FOO_HPPCOMMENT
LOW…ython/import_packages/relativeimport1/py3/pkg2/bar.hpp1#ifndef PY3_PKG2_BAR_HPPCOMMENT
LOW…/import_packages/relativeimport1/py3/pkg2/pkg3/foo.hpp1#ifndef PY3_PKG2_PKG3_FOO_HPPCOMMENT
LOW…les/python/import_packages/from_init2/py3/pkg2/bar.hpp1#ifndef PY3_PKG2_BAR_HPPCOMMENT
LOW…ython/import_packages/from_init2/py3/pkg2/pkg3/foo.hpp1#ifndef PY3_PKG2_PKG3_FOO_HPPCOMMENT
LOW…les/python/import_packages/from_init3/py3/pkg2/bar.hpp1#ifndef PY3_PKG2_HPPCOMMENT
82 more matches not shown…
Self-Referential Comments48 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMCCache/util.c446 "# This file is a cache directory tag created by ccache.\n"CODE
MEDIUMExamples/perl5/extend/runme.pl19# Create an instance of our employee extension class, CEO. The calls toCOMMENT
MEDIUMExamples/perl5/extend/runme.pl29# Create a new EmployeeList instance. This class does not have a C++COMMENT
MEDIUMExamples/perl5/value/runme.pl5# Create a couple of a vectorsCOMMENT
MEDIUMExamples/perl5/callback/runme.pl16# Create an Caller instanceCOMMENT
MEDIUMExamples/python/extend/runme.py19# Create an instance of our employee extension class, CEO. The calls toCOMMENT
MEDIUMExamples/python/extend/runme.py29# Create a new EmployeeList instance. This class does not have a C++COMMENT
MEDIUMExamples/python/callback/runme.py16# Create an Caller instanceCOMMENT
MEDIUMExamples/php/extend/runme.php13# Create an instance of our employee extension class, CEO. The calls toCOMMENT
MEDIUMExamples/php/extend/runme.php22# Create a new EmployeeList instance. This class does not have a C++COMMENT
MEDIUMExamples/php/callback/runme.php13# Create an Caller instanceCOMMENT
MEDIUMExamples/octave/extend/runme.m15# Create an instance of our employee extension class, CEO. The calls toCOMMENT
MEDIUMExamples/octave/extend/runme.m25# Create a new EmployeeList instance. This class does not have a C++COMMENT
MEDIUMExamples/octave/callback/runme.m12# Create an Caller instanceCOMMENT
MEDIUMExamples/test-suite/ruby/director_wombat_runme.rb50# Create a MyBar instance...COMMENT
MEDIUMExamples/ruby/value/runme.rb5# Create a couple of a vectorsCOMMENT
MEDIUMExamples/ruby/free_function/runme.rb5 # Create an animal and zooCOMMENT
MEDIUMExamples/ruby/free_function/runme.rb38# This method is no longer valid since the zoo freed the underlyingCOMMENT
MEDIUMDoc/Manual/Python.html1750&gt;&gt;&gt; f = Foo() # Create a FooCODE
MEDIUMDoc/Manual/Python.html1830&gt;&gt;&gt; f = Foo() # Create a FooCODE
MEDIUMDoc/Manual/Python.html2205&gt;&gt;&gt; p = example.CreateFoo() # Create a smart-pointer somehowCODE
MEDIUMDoc/Manual/Python.html2991&gt;&gt;&gt; v = Object() # Create an objectCODE
MEDIUMDoc/Manual/Python.html2992&gt;&gt;&gt; n = Node() # Create a nodeCODE
MEDIUMDoc/Manual/Python.html3634# This module provides wrappers to the Whizz Bang libraryCOMMENT
MEDIUMDoc/Manual/Python.html3655# This module provides wrappers to the Whizz Bang libraryCOMMENT
MEDIUMDoc/Manual/Tcl.html1166% Foo x # Create a Foo objectCODE
MEDIUMDoc/Manual/Tcl.html1188% set b [Bar] # Create a BarCODE
MEDIUMDoc/Manual/Tcl.html1336% Foo f # Create a FooCODE
MEDIUMDoc/Manual/Tcl.html1337% Bar b # Create a BarCODE
MEDIUMDoc/Manual/Tcl.html1373% Foo f # Create a FooCODE
MEDIUMDoc/Manual/Tcl.html1448% Foo f # Create a FooCODE
MEDIUMDoc/Manual/Tcl.html1809% set p [CreateFoo] # Create a smart-pointer somehowCODE
MEDIUMDoc/Manual/Tcl.html2057% Object v # Create an objectCODE
MEDIUMDoc/Manual/Tcl.html2058% Node n # Create a nodeCODE
MEDIUMDoc/Manual/Tcl.html3235 # Create a procedureCOMMENT
MEDIUMDoc/Manual/Tcl.html3246set a [Array double 100] ;# Create a double [100]CODE
MEDIUMDoc/Manual/Tcl.html3253set ia [Array int 50] ;# Create an int[50]CODE
MEDIUMDoc/Manual/Tcl.html3301 # Create the new objectCOMMENT
MEDIUMDoc/Manual/SWIG.html3124&gt;&gt;&gt; v = Vector(3, 4, 0) # Create a new vectorCODE
MEDIUMDoc/Manual/SWIG.html3390$o = CreateObject(); # Create an object somehowCODE
MEDIUMDoc/Manual/Perl5.html2184@a = ("Dave", "Mike", "John", "Mary"); # Create an array of stringsCODE
MEDIUMDoc/Manual/Library.html480a = new_doubleArray(10) # Create an arrayCODE
MEDIUMDoc/Manual/Library.html1819&gt;&gt;&gt; iv = IntVector(4) # Create an vector&lt;int&gt;CODE
MEDIUMDoc/Manual/SWIGPlus.html844x = List() # Create a listCODE
MEDIUMDoc/Manual/SWIGPlus.html2130&gt;&gt;&gt; f = Foo() # Create a FooCODE
MEDIUMDoc/Manual/Ruby.html1034<pre>irb(main):001:0&gt; <b>f = Foo.new</b> # Create a FooCODE
MEDIUMDoc/Manual/Ruby.html1533<pre>irb(main):001:0&gt; <b>p = Example::CreateFoo()</b> # Create a smart-pointer somehowCODE
MEDIUMDoc/Manual/Ruby.html4514# Create the makefileCOMMENT
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALExamples/test-suite/java/nspacemove_runme.java22 nspacemovePackage.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0);CODE
CRITICALExamples/test-suite/java/nspacemove_runme.java23 nspacemovePackage.Ooter.Extra.Inner1.Color created = nspacemovePackage.Ooter.Extra.Inner1.Color.create();CODE
CRITICALExamples/test-suite/java/nspacemove_runme.java43 nspacemovePackage.Ooter.Extra.Inner1.Color.setStaticMemberVariable(789);CODE
CRITICALExamples/test-suite/java/nspacemove_runme.java44 if (nspacemovePackage.Ooter.Extra.Inner1.Color.getStaticMemberVariable() != 789)CODE
CRITICALExamples/test-suite/lua/nspacemove_runme.lua15color2 = ns.Ooter.Extra.Inner1.Color.create()CODE
CRITICALExamples/test-suite/lua/nspacemove_runme.lua27ns.Ooter.Extra.Inner1.Color.colorStaticMethod(30.0)CODE
CRITICALExamples/test-suite/csharp/nspacemove_runme.cs15 nspacemoveNamespace.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0);CODE
CRITICALExamples/test-suite/csharp/nspacemove_runme.cs16 nspacemoveNamespace.Ooter.Extra.Inner1.Color created = nspacemoveNamespace.Ooter.Extra.Inner1.Color.create();CODE
CRITICALExamples/test-suite/javascript/nspacemove_runme.js9nspacemove.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0);CODE
CRITICALExamples/test-suite/javascript/nspacemove_runme.js10var created = nspacemove.Ooter.Extra.Inner1.Color.create();CODE
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippetContext
HIGH…t-suite/python/doxygen_basic_translate_style3_runme.py0\ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2STRING
HIGH…t-suite/python/doxygen_basic_translate_style2_runme.py0\ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2STRING
HIGH…les/test-suite/python/doxygen_basic_translate_runme.py0\ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2STRING
HIGH…t-suite/python/doxygen_basic_translate_style3_runme.py0a test of a very very very very very very very very very very very very very very very very very very very very very lonSTRING
HIGH…t-suite/python/doxygen_basic_translate_style2_runme.py0a test of a very very very very very very very very very very very very very very very very very very very very very lonSTRING
HIGH…les/test-suite/python/doxygen_basic_translate_runme.py0a test of a very very very very very very very very very very very very very very very very very very very very very lonSTRING
HIGH…s/test-suite/python/doxygen_basic_notranslate_runme.py0a test of a very very very very very very very very very very very very very very very very very very very very very lonSTRING
HIGH…t-suite/python/doxygen_basic_translate_style3_runme.py0*overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions tSTRING
HIGH…t-suite/python/doxygen_basic_translate_style2_runme.py0*overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions tSTRING
HIGH…les/test-suite/python/doxygen_basic_translate_runme.py0*overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions tSTRING
HIGH…t-suite/python/doxygen_basic_translate_style3_runme.py0\ test for default args :type a: int, optional :param a: some parameter, default is 42STRING
HIGH…t-suite/python/doxygen_basic_translate_style2_runme.py0\ test for default args :type a: int, optional :param a: some parameter, default is 42STRING
HIGH…les/test-suite/python/doxygen_basic_translate_runme.py0\ test for default args :type a: int, optional :param a: some parameter, default is 42STRING
HIGH…t-suite/python/doxygen_basic_translate_style3_runme.py0\ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange paramSTRING
HIGH…t-suite/python/doxygen_basic_translate_style2_runme.py0\ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange paramSTRING
HIGH…les/test-suite/python/doxygen_basic_translate_runme.py0\ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange paramSTRING
HIGH…t-suite/python/doxygen_basic_translate_style3_runme.py0\ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinateSTRING
HIGH…t-suite/python/doxygen_basic_translate_style2_runme.py0\ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinateSTRING
HIGH…les/test-suite/python/doxygen_basic_translate_runme.py0\ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinateSTRING
Cross-Language Confusion (JS/TS)11 hits · 78 pts
SeverityFileLineSnippetContext
HIGH⚡Examples/test-suite/javascript/typedef_inherit_runme.js8 print("Whoa! Bad return" + x);CODE
HIGH⚡Examples/test-suite/javascript/typedef_inherit_runme.js12 print("Whoa! Bad return" + x);CODE
HIGH⚡Examples/test-suite/javascript/typedef_inherit_runme.js19 print("Whoa! Bad return" + x);CODE
HIGH⚡Examples/test-suite/javascript/typedef_inherit_runme.js23 print ("Whoa! Bad return" + x);CODE
HIGH⚡Examples/test-suite/javascript/typedef_inherit_runme.js27 print ("Whoa! Bad return" + x);CODE
HIGHExamples/test-suite/javascript/typedef_scope_runme.js6 print("Failed!!");CODE
HIGHExamples/test-suite/javascript/typedef_scope_runme.js10 print("Failed!!");CODE
HIGH⚡Examples/test-suite/javascript/cpp_enum_runme.js6 print(f.hola);CODE
HIGH⚡Examples/test-suite/javascript/cpp_enum_runme.js12 print(f.hola);CODE
HIGH⚡Examples/test-suite/javascript/cpp_enum_runme.js19 print(f.hola);CODE
HIGH⚡Examples/test-suite/javascript/cpp_enum_runme.js25 print(cpp_enum.Foo.hi);CODE
Slop Phrases23 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMExamples/octave/callback/runme.m49# to manually drop the octave-side reference, you can useCOMMENT
MEDIUMDoc/Devel/wrapobj.html180Here is a simple example of how these functions are used. SupposeCODE
MEDIUMDoc/Manual/Python.html3897Here is a simple example:CODE
MEDIUMDoc/Manual/Python.html3991or a NULL pointer perhaps). Here is a simple example of how you might handle that:CODE
LOWDoc/Manual/Python.html5401don't forget to also provide a suitable <a href="Typemaps.html#Typemaps_overloading">typecheck typemap for overloading</CODE
MEDIUMDoc/Manual/SWIG.html3665<b>Note:</b> The usual SWIG C preprocessor rules apply to code in <tt>%apply</tt> blocks when SWIG parses this code. ForCODE
MEDIUMDoc/Manual/Perl5.html2915Here is a simple example showing how to add some Perl debug code to the constructor:CODE
MEDIUMDoc/Manual/Library.html238Here is a simple example of using <tt>%pointer_functions()</tt>:CODE
MEDIUMDoc/Manual/Library.html682Here is a simple example that illustrates the use of these macros:CODE
MEDIUMDoc/Manual/CSharp.html1546The managed code generated does check for the pending exception as mentioned earlier as the C# version of <tt>%exceptionCODE
MEDIUMDoc/Manual/CSharp.html2664as mentioned earlier, <tt>setElement</tt> is actually:CODE
LOWDoc/Manual/SWIGPlus.html4394// Don't forget to use %feature("flatnested") for OuterClass::InnerStruct andCOMMENT
MEDIUMDoc/Manual/Ocaml.html271As mentioned earlier, C++ files need specialCODE
MEDIUMDoc/Manual/Ocaml.html717Here's a simple example using Trolltech's Qt Library:CODE
MEDIUMDoc/Manual/Ocaml.html1008or a NULL pointer). Here is a simple example of how you might handle that:CODE
LOWDoc/Manual/Extending.html3589Don't forget to write end-user documentation for your language module. Currently,CODE
LOWDoc/Manual/Typemaps.html4073Don't forget to also provide a suitable <a href="#Typemaps_overloading">typemap for overloaded functions</a>, such as <tCODE
MEDIUMDoc/Manual/Lua.html2026As mentioned earlier, classes and structures, are all held as pointer, using the Lua 'userdata' structure. This structurCODE
MEDIUMDoc/Manual/Android.html89Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples introCODE
MEDIUMDoc/Manual/Android.html415Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples introCODE
MEDIUMDoc/Manual/Java.html4927Here is a simple example:CODE
MEDIUMDoc/Manual/Java.html5133or a NULL pointer perhaps). Here is a simple example of how you might handle that:CODE
MEDIUMDoc/Manual/Java.html8999as mentioned earlier, <tt>setElement</tt> is actually:CODE
Decorative Section Separators9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt23# ------------------------------------COMMENT
MEDIUMCMakeLists.txt91# --------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py19#-------------------------------------------------------------------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py43#-------------------------------------------------------------------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py55#-------------------------------------------------------------------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py74#-------------------------------------------------------------------------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py89#-------------------------------------------------------------------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py104#-------------------------------------------------------------------------------COMMENT
MEDIUMExamples/test-suite/python/python_richcompare_runme.py128#-------------------------------------------------------------------------COMMENT
Redundant / Tautological Comments14 hits · 20 pts
SeverityFileLineSnippetContext
LOWTools/CI-linux-install.sh52 # Check if Go is already installed on cached toolsCOMMENT
LOWTools/CI-linux-install.sh161 # Check if Python is already installed on cached toolsCOMMENT
LOWTools/CI-linux-install.sh189 # Check if ruby is already installed on cached toolsCOMMENT
LOWDoc/Manual/Tcl.html736% puts $density # Output value of C global variableCODE
LOW⚡Doc/Manual/SWIG.html811set foo [3.5] ;# Set foo to 3.5CODE
LOW⚡Doc/Manual/SWIG.html812puts $foo ;# Print the value of fooCODE
LOW⚡Doc/Manual/SWIG.html815cvar.foo = 3.5 # Set foo to 3.5CODE
LOW⚡Doc/Manual/SWIG.html816print(cvar.foo) # Print value of fooCODE
LOW⚡Doc/Manual/SWIG.html819$foo = 3.5; # Set foo to 3.5CODE
LOW⚡Doc/Manual/SWIG.html820print $foo, "\n"; # Print value of fooCODE
LOW⚡Doc/Manual/SWIG.html823Module.foo = 3.5 # Set foo to 3.5CODE
LOW⚡Doc/Manual/SWIG.html824print Module.foo, "\n" # Print value of fooCODE
LOWDoc/Manual/Perl5.html2360$c = 0.0; # Output valueCODE
LOWDoc/Manual/makechap.py218# Write the file back outCOMMENT
Cross-Language Confusion3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHTools/checkwarnings.py109 print("\n%d warning number(s) differ between swigwarn.h and Warnings.html" % (len(undocumented) + len(undefined)CODE
HIGH…les/test-suite/python/doxygen_misc_constructs_runme.py111['retVal < 10', 'g_counter == 23 && g_mode & 3']CODE
HIGH…ples/test-suite/python/director_binary_string_runme.py31# director_binary_string.Callback().run(null, null)COMMENT
Hyper-Verbose Identifiers12 hits · 12 pts
SeverityFileLineSnippetContext
LOWExamples/test-suite/python/comment_verifier.py9 def make_trailing_spaces_visible(str):CODE
LOWExamples/test-suite/python/swig_test_utils.py26def _swig_stub_annotation_text(annotation):CODE
LOW…est-suite/python/li_boost_shared_ptr_director_runme.py39 def take_c_shared_ptr_by_value(self,c):CODE
LOW…est-suite/python/li_boost_shared_ptr_director_runme.py51 def take_c_shared_ptr_by_pointer(self,c):CODE
LOW…est-suite/python/li_boost_shared_ptr_director_runme.py57 def take_c_shared_ptr_by_pointer_ref(self,c):CODE
LOWExamples/test-suite/python/argcargvtest_runme.py73def test_bad_args_memory_leak():CODE
LOWExamples/test-suite/python/argcargvtest_runme.py84def test_threading_race_conditions():CODE
LOWExamples/test-suite/ruby/li_std_vector_runme.rb124def compare_expanded_sequences(a, b)CODE
LOWExamples/test-suite/ruby/contract_runme.rb9def swig_assert_runtime_error(msg, type, &block)CODE
LOW…/test-suite/ruby/li_boost_shared_ptr_director_runme.rb48 def take_c_shared_ptr_by_value(c)CODE
LOW…/test-suite/ruby/li_boost_shared_ptr_director_runme.rb64 def take_c_shared_ptr_by_pointer(c)CODE
LOW…/test-suite/ruby/li_boost_shared_ptr_director_runme.rb72 def take_c_shared_ptr_by_pointer_ref(c)CODE
Fake / Example Data4 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡…es/test-suite/python/pyabi311_bufferinterface_runme.py23text = b'Lorem ipsum dolor sit amet'CODE
LOW⚡…es/test-suite/python/pyabi311_bufferinterface_runme.py23text = b'Lorem ipsum dolor sit amet'CODE
LOW⚡…es/test-suite/python/pyabi311_bufferinterface_runme.py24view[:len(text)] = b'Lorem ipsum dolor sit amet'CODE
LOW⚡…es/test-suite/python/pyabi311_bufferinterface_runme.py24view[:len(text)] = b'Lorem ipsum dolor sit amet'CODE
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMDoc/Manual/D.html374 <dd><p>Additional code to be emitted to the imports section of the intermediary D module (the <a href="D.html#D_importCODE
MEDIUMDoc/Manual/Java.html201However, the "<a href="SWIG.html#SWIG">SWIG Basics</a>" chapter will be a useful read in conjunction with this one.CODE
MEDIUMDoc/Manual/Java.html232Android uses Java JNI and also works with SWIG. Please read the <a href="Android.html#Android">Android chapter</a> in coCODE
Excessive Try-Catch Wrapping3 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMTools/mkdist.py36 print("Error: Python 3 or higher is required")CODE
LOWExamples/python/variables/runme.py57except Exception:CODE
LOWExamples/python/variables/runme.py64except Exception:CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWTools/checkwarnings.py44CODE
LOWExamples/test-suite/python/swig_test_utils.py172CODE
LOWExamples/test-suite/python/cpp11_std_array_runme.py19CODE
LOWExamples/test-suite/python/cpp11_std_array_runme.py34CODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMExamples/test-suite/python/director_exception_runme.py20CODE
MEDIUMExamples/test-suite/python/primitive_types_runme.py35CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWTools/ci-repro/run.sh8# Usage:COMMENT
LOW.agents/skills/swig-test/test-configured-languages.sh18# Usage:COMMENT
Verbosity Indicators1 hit · 1 pts
SeverityFileLineSnippetContext
LOWDoc/Devel/scanner.html142containing the characters (e.g., "%@"). The purpose of this function is to up special keywords such as "%module" or "@dCODE