SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
This report presents the forensic synthetic code analysis of swig/swig, a SWIG project with 6,304 GitHub stars. SynthScan v2.0 examined 274,865 lines of code across 3282 source files, recording 599 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 3.5 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).
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.
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.
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.
The scanner identified 599 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/mkdist.py | 6 | CODE | |
| LOW | Tools/mkrelease.py | 5 | CODE | |
| LOW | Examples/python/varargs/runme.py | 3 | CODE | |
| LOW | Examples/python/import_packages/from_init1/runme.py | 15 | CODE | |
| LOW | …python/import_packages/from_init1/py3/pkg2/__init__.py | 1 | CODE | |
| LOW | …amples/python/import_packages/relativeimport2/runme.py | 15 | CODE | |
| LOW | Examples/python/import_packages/module_is_init/runme.py | 2 | CODE | |
| LOW | …amples/python/import_packages/relativeimport3/runme.py | 15 | CODE | |
| LOW | …amples/python/import_packages/relativeimport1/runme.py | 15 | CODE | |
| LOW | Examples/python/import_packages/from_init2/runme.py | 15 | CODE | |
| LOW | …python/import_packages/from_init2/py3/pkg2/__init__.py | 1 | CODE | |
| LOW | Examples/python/import_packages/from_init3/runme.py | 15 | CODE | |
| LOW | …python/import_packages/from_init3/py3/pkg2/__init__.py | 1 | CODE | |
| LOW | Examples/test-suite/python/cpp_static_runme.py | 1 | CODE | |
| LOW | …/test-suite/python/cpp17_using_pack_expansion_runme.py | 1 | CODE | |
| LOW | …st-suite/python/using_member_typedef_overload_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/profiletest_runme.py | 1 | CODE | |
| LOW | …test-suite/python/cpp11_rvalue_reference_move_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/constructor_rename_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/array_member_runme.py | 1 | CODE | |
| LOW | …mples/test-suite/python/smart_pointer_typedef_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_std_vector_extra_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/python_pickle_runme.py | 4 | CODE | |
| LOW | …mples/test-suite/python/rename_rstrip_encoder_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/input_runme.py | 1 | CODE | |
| LOW | …uite/python/cpp11_variadic_function_templates_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/director_exception_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/cpp20_concepts_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/empty_runme.py | 1 | CODE | |
| LOW | …les/test-suite/python/template_typedef_import_runme.py | 1 | CODE | |
| LOW | …les/test-suite/python/template_typedef_import_runme.py | 2 | CODE | |
| LOW | Examples/test-suite/python/typemap_namespace_runme.py | 1 | CODE | |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 1 | CODE | |
| LOW | …amples/test-suite/python/cpp11_std_unique_ptr_runme.py | 1 | CODE | |
| LOW | …s/test-suite/python/template_class_reuse_name_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/virtual_derivation_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/template_ns4_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/default_arg_values_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/refcount_runme.py | 1 | CODE | |
| LOW | …ples/test-suite/python/cpp17_u8_char_literals_runme.py | 1 | CODE | |
| LOW | …test-suite/python/using_nested_member_typedef_runme.py | 1 | CODE | |
| LOW | …suite/python/cpp11_director_using_constructor_runme.py | 1 | CODE | |
| LOW | …/test-suite/python/doxygen_translate_all_tags_runme.py | 3 | CODE | |
| LOW | …/test-suite/python/doxygen_translate_all_tags_runme.py | 4 | CODE | |
| LOW | Examples/test-suite/python/overload_numeric_runme.py | 2 | CODE | |
| LOW | Examples/test-suite/python/overload_numeric_runme.py | 3 | CODE | |
| LOW | …ples/test-suite/python/overload_template_fast_runme.py | 1 | CODE | |
| LOW | …les/test-suite/python/cpp11_shared_ptr_upcast_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_std_wstream_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/director_shared_ptr_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/director_nested_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 2 | CODE | |
| LOW | …st-suite/python/using_member_typedef_template_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/smart_pointer_multi_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/name_warnings_runme.py | 1 | CODE | |
| LOW | …ples/test-suite/python/smart_pointer_overload_runme.py | 1 | CODE | |
| LOW | …es/test-suite/python/cpp20_spaceship_operator_runme.py | 1 | CODE | |
| LOW | …-suite/python/template_templated_constructors_runme.py | 1 | CODE | |
| LOW | …amples/test-suite/python/nested_template_base_runme.py | 1 | CODE | |
| LOW | …amples/test-suite/python/smart_pointer_member_runme.py | 1 | CODE | |
| 230 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CCache/snprintf.c | 61 | COMMENT | |
| LOW | CCache/snprintf.c | 81 | /* make the compiler happy with an empty file */ | COMMENT |
| LOW | CCache/snprintf.c | 121 | /* format flags - Bits */ | COMMENT |
| LOW | CCache/ccache.h | 1 | #include "ccache_swig_config.h" | COMMENT |
| LOW | CCache/ccache.h | 21 | #include <sys/mman.h> | COMMENT |
| LOW | CCache/ccache.h | 41 | #endif | COMMENT |
| LOW | Tools/ci-repro/run.sh | 1 | #!/bin/bash | COMMENT |
| LOW | Source/DOH/doh.h | 41 | #define DohCopy DOH_NAMESPACE(Copy) | COMMENT |
| LOW | Source/DOH/doh.h | 61 | #define DohSetDouble DOH_NAMESPACE(SetDouble) | COMMENT |
| LOW | Source/DOH/doh.h | 81 | #define DohChop DOH_NAMESPACE(Chop) | COMMENT |
| LOW | Source/DOH/doh.h | 101 | #define DohStrchr DOH_NAMESPACE(Strchr) | COMMENT |
| LOW | Source/DOH/doh.h | 121 | #define DohVoidType DOH_NAMESPACE(VoidType) | COMMENT |
| LOW | Source/DOH/doh.h | 141 | * names are used. | COMMENT |
| LOW | Source/DOH/doh.h | 361 | } DohFuncPtr_t; | COMMENT |
| LOW | Source/DOH/doh.h | 381 | #define Delitem DohDelitem | COMMENT |
| LOW | Source/DOH/doh.h | 401 | #define Getc DohGetc | COMMENT |
| LOW | Source/DOH/doh.h | 421 | #define SetDouble DohSetDouble | COMMENT |
| LOW | Source/DOH/doh.h | 441 | #define NewFileFromFile DohNewFileFromFile | COMMENT |
| LOW | Source/DOH/doh.h | 461 | #define First DohFirst | COMMENT |
| LOW | Source/DOH/doh.h | 501 | #pragma GCC poison abort exit | COMMENT |
| LOW | Source/Swig/swig.h | 61 | COMMENT | |
| LOW | Source/Swig/swig.h | 81 | COMMENT | |
| LOW | Source/Swig/swigscan.h | 41 | #define SWIG_TOKEN_SEMI 3 /* ; */ | COMMENT |
| LOW | Source/Swig/swigscan.h | 61 | #define SWIG_TOKEN_CHAR 23 /* 'charconst' */ | COMMENT |
| LOW | Source/Swig/swigscan.h | 81 | #define SWIG_TOKEN_STAR 102 /* * */ | COMMENT |
| LOW | Source/Swig/swigscan.h | 101 | #define SWIG_TOKEN_RSHIFT 122 /* >> */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 61 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 81 | /* Unused since 1.3.18: #define WARN_PARSE_TEMPLATE_PARTIAL 311 */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 101 | #define WARN_PARSE_TEMPLATE_NESTED 331 | COMMENT |
| LOW | Source/Include/swigwarn.h | 121 | #define WARN_IGNORE_OPERATOR_AND 358 /* & */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 141 | #define WARN_IGNORE_OPERATOR_NOTEQUAL 378 /* != */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 161 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 181 | #define WARN_TYPEMAP_OUT_UNDEF 461 | COMMENT |
| LOW | Source/Include/swigwarn.h | 201 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 221 | #define WARN_LANG_PORTABILITY_FILENAME 518 | COMMENT |
| LOW | Source/Include/swigwarn.h | 241 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 281 | #define WARN_C_UNSUPPORTTED 761 | COMMENT |
| LOW | Source/Include/swigwarn.h | 301 | #define WARN_JAVA_TYPEMAP_INTERFACECODE_UNDEF 821 | COMMENT |
| LOW | Source/Include/swigwarn.h | 321 | #define WARN_CSHARP_TYPEMAP_CSDIRECTOROUT_UNDEF 840 | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 1 | #!/bin/bash | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 21 | # TARGET is a test-suite make target including its suffix, for example: | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 41 | # else c++17. The C standard is derived from it as CI | COMMENT |
| LOW | Examples/perl5/extend/runme.pl | 41 | COMMENT | |
| LOW | Examples/go/extend/runme.go | 21 | // Create a new EmployeeList instance. This class does not | COMMENT |
| LOW | Examples/go/extend/runme.go | 41 | // Employee*. Previously, Go resolved the call immediately in | COMMENT |
| LOW | Examples/go/director/director.go | 21 | // The IsFooBarGo method ensures that FooBarGo is a superset of FooBarAbstract. | COMMENT |
| LOW | Examples/python/extend/runme.py | 41 | e = e.__disown__() | COMMENT |
| LOW | …les/python/import_packages/same_modnames1/pkg2/foo.hpp | 1 | #ifndef PKG2_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/same_modnames1/pkg1/foo.hpp | 1 | #ifndef PKG1_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init1/py3/pkg2/foo.hpp | 1 | #ifndef PY3_PKG2_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init1/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …ython/import_packages/relativeimport2/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_HPP | COMMENT |
| LOW | …rt_packages/relativeimport2/py3/pkg2/pkg3/pkg4/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_PKG4 | COMMENT |
| LOW | …ython/import_packages/relativeimport3/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …/import_packages/relativeimport3/py3/pkg2/pkg3/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/same_modnames2/pkg1/foo.hpp | 1 | #ifndef PKG1_FOO_HPP | COMMENT |
| LOW | …ython/import_packages/same_modnames2/pkg1/pkg2/foo.hpp | 1 | #ifndef PKG1_PKG2_FOO_HPP | COMMENT |
| LOW | …ython/import_packages/relativeimport1/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …/import_packages/relativeimport1/py3/pkg2/pkg3/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init2/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CCache/util.c | 446 | "# This file is a cache directory tag created by ccache.\n" | CODE |
| MEDIUM | Examples/perl5/extend/runme.pl | 19 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/perl5/extend/runme.pl | 29 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/perl5/value/runme.pl | 5 | # Create a couple of a vectors | COMMENT |
| MEDIUM | Examples/perl5/callback/runme.pl | 16 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/python/extend/runme.py | 19 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/python/extend/runme.py | 29 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/python/callback/runme.py | 16 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/php/extend/runme.php | 13 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/php/extend/runme.php | 22 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/php/callback/runme.php | 13 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/octave/extend/runme.m | 15 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/octave/extend/runme.m | 25 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/octave/callback/runme.m | 12 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/test-suite/ruby/director_wombat_runme.rb | 50 | # Create a MyBar instance... | COMMENT |
| MEDIUM | Examples/ruby/value/runme.rb | 5 | # Create a couple of a vectors | COMMENT |
| MEDIUM | Examples/ruby/free_function/runme.rb | 5 | # Create an animal and zoo | COMMENT |
| MEDIUM | Examples/ruby/free_function/runme.rb | 38 | # This method is no longer valid since the zoo freed the underlying | COMMENT |
| MEDIUM | Doc/Manual/Python.html | 1743 | >>> f = Foo() # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Python.html | 1823 | >>> f = Foo() # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Python.html | 2198 | >>> p = example.CreateFoo() # Create a smart-pointer somehow | CODE |
| MEDIUM | Doc/Manual/Python.html | 2984 | >>> v = Object() # Create an object | CODE |
| MEDIUM | Doc/Manual/Python.html | 2985 | >>> n = Node() # Create a node | CODE |
| MEDIUM | Doc/Manual/Python.html | 3627 | # This module provides wrappers to the Whizz Bang library | COMMENT |
| MEDIUM | Doc/Manual/Python.html | 3648 | # This module provides wrappers to the Whizz Bang library | COMMENT |
| MEDIUM | Doc/Manual/Tcl.html | 1166 | % Foo x # Create a Foo object | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1188 | % set b [Bar] # Create a Bar | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1336 | % Foo f # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1337 | % Bar b # Create a Bar | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1373 | % Foo f # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1448 | % Foo f # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1809 | % set p [CreateFoo] # Create a smart-pointer somehow | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 2057 | % Object v # Create an object | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 2058 | % Node n # Create a node | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 3235 | # Create a procedure | COMMENT |
| MEDIUM | Doc/Manual/Tcl.html | 3246 | set a [Array double 100] ;# Create a double [100] | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 3253 | set ia [Array int 50] ;# Create an int[50] | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 3301 | # Create the new object | COMMENT |
| MEDIUM | Doc/Manual/SWIG.html | 3124 | >>> v = Vector(3, 4, 0) # Create a new vector | CODE |
| MEDIUM | Doc/Manual/SWIG.html | 3390 | $o = CreateObject(); # Create an object somehow | CODE |
| MEDIUM | Doc/Manual/Perl5.html | 2184 | @a = ("Dave", "Mike", "John", "Mary"); # Create an array of strings | CODE |
| MEDIUM | Doc/Manual/Library.html | 480 | a = new_doubleArray(10) # Create an array | CODE |
| MEDIUM | Doc/Manual/Library.html | 1819 | >>> iv = IntVector(4) # Create an vector<int> | CODE |
| MEDIUM | Doc/Manual/SWIGPlus.html | 844 | x = List() # Create a list | CODE |
| MEDIUM | Doc/Manual/SWIGPlus.html | 2130 | >>> f = Foo() # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Ruby.html | 1034 | <pre>irb(main):001:0> <b>f = Foo.new</b> # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Ruby.html | 1533 | <pre>irb(main):001:0> <b>p = Example::CreateFoo()</b> # Create a smart-pointer somehow | CODE |
| MEDIUM | Doc/Manual/Ruby.html | 4508 | # Create the makefile | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 22 | nspacemovePackage.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0); | CODE |
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 23 | nspacemovePackage.Ooter.Extra.Inner1.Color created = nspacemovePackage.Ooter.Extra.Inner1.Color.create(); | CODE |
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 43 | nspacemovePackage.Ooter.Extra.Inner1.Color.setStaticMemberVariable(789); | CODE |
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 44 | if (nspacemovePackage.Ooter.Extra.Inner1.Color.getStaticMemberVariable() != 789) | CODE |
| CRITICAL | Examples/test-suite/lua/nspacemove_runme.lua | 15 | color2 = ns.Ooter.Extra.Inner1.Color.create() | CODE |
| CRITICAL | Examples/test-suite/lua/nspacemove_runme.lua | 27 | ns.Ooter.Extra.Inner1.Color.colorStaticMethod(30.0) | CODE |
| CRITICAL | Examples/test-suite/csharp/nspacemove_runme.cs | 15 | nspacemoveNamespace.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0); | CODE |
| CRITICAL | Examples/test-suite/csharp/nspacemove_runme.cs | 16 | nspacemoveNamespace.Ooter.Extra.Inner1.Color created = nspacemoveNamespace.Ooter.Extra.Inner1.Color.create(); | CODE |
| CRITICAL | Examples/test-suite/javascript/nspacemove_runme.js | 9 | nspacemove.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0); | CODE |
| CRITICAL | Examples/test-suite/javascript/nspacemove_runme.js | 10 | var created = nspacemove.Ooter.Extra.Inner1.Color.create(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2 | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …s/test-suite/python/doxygen_basic_notranslate_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | *overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions t | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | *overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions t | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | *overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions t | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ test for default args :type a: int, optional :param a: some parameter, default is 42 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ test for default args :type a: int, optional :param a: some parameter, default is 42 | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ test for default args :type a: int, optional :param a: some parameter, default is 42 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange param | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange param | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange param | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinate | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinate | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinate | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 8 | print("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 12 | print("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 19 | print("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 23 | print ("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 27 | print ("Whoa! Bad return" + x); | CODE |
| HIGH | Examples/test-suite/javascript/typedef_scope_runme.js | 6 | print("Failed!!"); | CODE |
| HIGH | Examples/test-suite/javascript/typedef_scope_runme.js | 10 | print("Failed!!"); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 6 | print(f.hola); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 12 | print(f.hola); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 19 | print(f.hola); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 25 | print(cpp_enum.Foo.hi); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Examples/octave/callback/runme.m | 49 | # to manually drop the octave-side reference, you can use | COMMENT |
| MEDIUM | Doc/Devel/wrapobj.html | 180 | Here is a simple example of how these functions are used. Suppose | CODE |
| MEDIUM | Doc/Manual/Python.html | 3815 | Here is a simple example: | CODE |
| MEDIUM | Doc/Manual/Python.html | 3909 | or a NULL pointer perhaps). Here is a simple example of how you might handle that: | CODE |
| LOW | Doc/Manual/Python.html | 5262 | don't forget to also provide a suitable <a href="Typemaps.html#Typemaps_overloading">typecheck typemap for overloading</ | CODE |
| MEDIUM | Doc/Manual/SWIG.html | 3665 | <b>Note:</b> The usual SWIG C preprocessor rules apply to code in <tt>%apply</tt> blocks when SWIG parses this code. For | CODE |
| MEDIUM | Doc/Manual/Perl5.html | 2915 | Here is a simple example showing how to add some Perl debug code to the constructor: | CODE |
| MEDIUM | Doc/Manual/Library.html | 238 | Here is a simple example of using <tt>%pointer_functions()</tt>: | CODE |
| MEDIUM | Doc/Manual/Library.html | 682 | Here is a simple example that illustrates the use of these macros: | CODE |
| MEDIUM | Doc/Manual/CSharp.html | 1538 | The managed code generated does check for the pending exception as mentioned earlier as the C# version of <tt>%exception | CODE |
| MEDIUM | Doc/Manual/CSharp.html | 2655 | as mentioned earlier, <tt>setElement</tt> is actually: | CODE |
| LOW | Doc/Manual/SWIGPlus.html | 4363 | // Don't forget to use %feature("flatnested") for OuterClass::InnerStruct and | COMMENT |
| MEDIUM | Doc/Manual/Ocaml.html | 271 | As mentioned earlier, C++ files need special | CODE |
| MEDIUM | Doc/Manual/Ocaml.html | 717 | Here's a simple example using Trolltech's Qt Library: | CODE |
| MEDIUM | Doc/Manual/Ocaml.html | 1008 | or a NULL pointer). Here is a simple example of how you might handle that: | CODE |
| LOW | Doc/Manual/Extending.html | 3589 | Don't forget to write end-user documentation for your language module. Currently, | CODE |
| LOW | Doc/Manual/Typemaps.html | 3870 | Don't forget to also provide a suitable <a href="#Typemaps_overloading">typemap for overloaded functions</a>, such as <t | CODE |
| MEDIUM | Doc/Manual/Lua.html | 2022 | As mentioned earlier, classes and structures, are all held as pointer, using the Lua 'userdata' structure. This structur | CODE |
| MEDIUM | Doc/Manual/Android.html | 87 | Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples intro | CODE |
| MEDIUM | Doc/Manual/Android.html | 413 | Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples intro | CODE |
| MEDIUM | Doc/Manual/Java.html | 4926 | Here is a simple example: | CODE |
| MEDIUM | Doc/Manual/Java.html | 5132 | or a NULL pointer perhaps). Here is a simple example of how you might handle that: | CODE |
| MEDIUM | Doc/Manual/Java.html | 8998 | as mentioned earlier, <tt>setElement</tt> is actually: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CMakeLists.txt | 23 | # ------------------------------------ | COMMENT |
| MEDIUM | CMakeLists.txt | 90 | # -------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 19 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 43 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 55 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 74 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 89 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 104 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 128 | #------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/CI-linux-install.sh | 52 | # Check if Go is already installed on cached tools | COMMENT |
| LOW | Tools/CI-linux-install.sh | 154 | # Check if Python is already installed on cached tools | COMMENT |
| LOW | Tools/CI-linux-install.sh | 182 | # Check if ruby is already installed on cached tools | COMMENT |
| LOW | Doc/Manual/Tcl.html | 736 | % puts $density # Output value of C global variable | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 811 | set foo [3.5] ;# Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 812 | puts $foo ;# Print the value of foo | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 815 | cvar.foo = 3.5 # Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 816 | print(cvar.foo) # Print value of foo | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 819 | $foo = 3.5; # Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 820 | print $foo, "\n"; # Print value of foo | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 823 | Module.foo = 3.5 # Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 824 | print Module.foo, "\n" # Print value of foo | CODE |
| LOW | Doc/Manual/Perl5.html | 2360 | $c = 0.0; # Output value | CODE |
| LOW | Doc/Manual/makechap.py | 218 | # Write the file back out | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …les/test-suite/python/doxygen_misc_constructs_runme.py | 111 | ['retVal < 10', 'g_counter == 23 && g_mode & 3'] | CODE |
| HIGH | …ples/test-suite/python/director_binary_string_runme.py | 31 | # director_binary_string.Callback().run(null, null) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Examples/test-suite/python/comment_verifier.py | 9 | def make_trailing_spaces_visible(str): | CODE |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 39 | def take_c_shared_ptr_by_value(self,c): | CODE |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 51 | def take_c_shared_ptr_by_pointer(self,c): | CODE |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 57 | def take_c_shared_ptr_by_pointer_ref(self,c): | CODE |
| LOW | Examples/test-suite/python/argcargvtest_runme.py | 73 | def test_bad_args_memory_leak(): | CODE |
| LOW | Examples/test-suite/python/argcargvtest_runme.py | 84 | def test_threading_race_conditions(): | CODE |
| LOW | Examples/test-suite/ruby/li_std_vector_runme.rb | 124 | def compare_expanded_sequences(a, b) | CODE |
| LOW | Examples/test-suite/ruby/contract_runme.rb | 9 | def swig_assert_runtime_error(msg, type, &block) | CODE |
| LOW | …/test-suite/ruby/li_boost_shared_ptr_director_runme.rb | 48 | def take_c_shared_ptr_by_value(c) | CODE |
| LOW | …/test-suite/ruby/li_boost_shared_ptr_director_runme.rb | 64 | def take_c_shared_ptr_by_pointer(c) | CODE |
| LOW | …/test-suite/ruby/li_boost_shared_ptr_director_runme.rb | 72 | def take_c_shared_ptr_by_pointer_ref(c) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 23 | text = b'Lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 23 | text = b'Lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 24 | view[:len(text)] = b'Lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 24 | view[:len(text)] = b'Lorem ipsum dolor sit amet' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Doc/Manual/D.html | 374 | <dd><p>Additional code to be emitted to the imports section of the intermediary D module (the <a href="D.html#D_import | CODE |
| MEDIUM | Doc/Manual/Java.html | 201 | However, the "<a href="SWIG.html#SWIG">SWIG Basics</a>" chapter will be a useful read in conjunction with this one. | CODE |
| MEDIUM | Doc/Manual/Java.html | 232 | Android uses Java JNI and also works with SWIG. Please read the <a href="Android.html#Android">Android chapter</a> in co | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tools/mkdist.py | 36 | print("Error: Python 3 or higher is required") | CODE |
| LOW | Examples/python/variables/runme.py | 57 | except Exception: | CODE |
| LOW | Examples/python/variables/runme.py | 64 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Examples/test-suite/python/director_exception_runme.py | 20 | CODE | |
| MEDIUM | Examples/test-suite/python/primitive_types_runme.py | 35 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/ci-repro/run.sh | 8 | # Usage: | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 18 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Examples/test-suite/python/swig_test_utils.py | 40 | CODE | |
| LOW | Examples/test-suite/python/cpp11_std_array_runme.py | 19 | CODE | |
| LOW | Examples/test-suite/python/cpp11_std_array_runme.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Doc/Devel/scanner.html | 142 | containing the characters (e.g., "%@"). The purpose of this function is to up special keywords such as "%module" or "@d | CODE |