Repository Analysis

swig/swig

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

3.5 Likely human-written View on GitHub

Analysis Overview

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

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-11
Last Push
6.3K
Stars
SWIG
Language
274.9K
Lines of Code
3.3K
Files
599
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 10HIGH 32MEDIUM 82LOW 475

Directory Score Breakdown

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

Pattern Findings

The scanner identified 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.

Unused Imports290 hits · 290 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…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
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
LOW…es/test-suite/python/cpp20_spaceship_operator_runme.py1CODE
LOW…-suite/python/template_templated_constructors_runme.py1CODE
LOW…amples/test-suite/python/nested_template_base_runme.py1CODE
LOW…amples/test-suite/python/smart_pointer_member_runme.py1CODE
230 more matches not shown…
Over-Commented Block144 hits · 144 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/ci-repro/run.sh1#!/bin/bashCOMMENT
LOWSource/DOH/doh.h41#define DohCopy DOH_NAMESPACE(Copy)COMMENT
LOWSource/DOH/doh.h61#define DohSetDouble DOH_NAMESPACE(SetDouble)COMMENT
LOWSource/DOH/doh.h81#define DohChop DOH_NAMESPACE(Chop)COMMENT
LOWSource/DOH/doh.h101#define DohStrchr DOH_NAMESPACE(Strchr)COMMENT
LOWSource/DOH/doh.h121#define DohVoidType DOH_NAMESPACE(VoidType)COMMENT
LOWSource/DOH/doh.h141 * names are used.COMMENT
LOWSource/DOH/doh.h361} DohFuncPtr_t;COMMENT
LOWSource/DOH/doh.h381#define Delitem DohDelitemCOMMENT
LOWSource/DOH/doh.h401#define Getc DohGetcCOMMENT
LOWSource/DOH/doh.h421#define SetDouble DohSetDoubleCOMMENT
LOWSource/DOH/doh.h441#define NewFileFromFile DohNewFileFromFileCOMMENT
LOWSource/DOH/doh.h461#define First DohFirstCOMMENT
LOWSource/DOH/doh.h501#pragma GCC poison abort exitCOMMENT
LOWSource/Swig/swig.h61COMMENT
LOWSource/Swig/swig.h81COMMENT
LOWSource/Swig/swigscan.h41#define SWIG_TOKEN_SEMI 3 /* ; */COMMENT
LOWSource/Swig/swigscan.h61#define SWIG_TOKEN_CHAR 23 /* 'charconst' */COMMENT
LOWSource/Swig/swigscan.h81#define SWIG_TOKEN_STAR 102 /* * */COMMENT
LOWSource/Swig/swigscan.h101#define SWIG_TOKEN_RSHIFT 122 /* >> */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_AND 358 /* & */COMMENT
LOWSource/Include/swigwarn.h141#define WARN_IGNORE_OPERATOR_NOTEQUAL 378 /* != */COMMENT
LOWSource/Include/swigwarn.h161COMMENT
LOWSource/Include/swigwarn.h181#define WARN_TYPEMAP_OUT_UNDEF 461COMMENT
LOWSource/Include/swigwarn.h201COMMENT
LOWSource/Include/swigwarn.h221#define WARN_LANG_PORTABILITY_FILENAME 518COMMENT
LOWSource/Include/swigwarn.h241COMMENT
LOWSource/Include/swigwarn.h281#define WARN_C_UNSUPPORTTED 761COMMENT
LOWSource/Include/swigwarn.h301#define WARN_JAVA_TYPEMAP_INTERFACECODE_UNDEF 821COMMENT
LOWSource/Include/swigwarn.h321#define WARN_CSHARP_TYPEMAP_CSDIRECTOROUT_UNDEF 840COMMENT
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
84 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.html1743&gt;&gt;&gt; f = Foo() # Create a FooCODE
MEDIUMDoc/Manual/Python.html1823&gt;&gt;&gt; f = Foo() # Create a FooCODE
MEDIUMDoc/Manual/Python.html2198&gt;&gt;&gt; p = example.CreateFoo() # Create a smart-pointer somehowCODE
MEDIUMDoc/Manual/Python.html2984&gt;&gt;&gt; v = Object() # Create an objectCODE
MEDIUMDoc/Manual/Python.html2985&gt;&gt;&gt; n = Node() # Create a nodeCODE
MEDIUMDoc/Manual/Python.html3627# This module provides wrappers to the Whizz Bang libraryCOMMENT
MEDIUMDoc/Manual/Python.html3648# 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.html4508# 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
HIGHExamples/test-suite/javascript/typedef_inherit_runme.js8 print("Whoa! Bad return" + x);CODE
HIGHExamples/test-suite/javascript/typedef_inherit_runme.js12 print("Whoa! Bad return" + x);CODE
HIGHExamples/test-suite/javascript/typedef_inherit_runme.js19 print("Whoa! Bad return" + x);CODE
HIGHExamples/test-suite/javascript/typedef_inherit_runme.js23 print ("Whoa! Bad return" + x);CODE
HIGHExamples/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
HIGHExamples/test-suite/javascript/cpp_enum_runme.js6 print(f.hola);CODE
HIGHExamples/test-suite/javascript/cpp_enum_runme.js12 print(f.hola);CODE
HIGHExamples/test-suite/javascript/cpp_enum_runme.js19 print(f.hola);CODE
HIGHExamples/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.html3815Here is a simple example:CODE
MEDIUMDoc/Manual/Python.html3909or a NULL pointer perhaps). Here is a simple example of how you might handle that:CODE
LOWDoc/Manual/Python.html5262don'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.html1538The managed code generated does check for the pending exception as mentioned earlier as the C# version of <tt>%exceptionCODE
MEDIUMDoc/Manual/CSharp.html2655as mentioned earlier, <tt>setElement</tt> is actually:CODE
LOWDoc/Manual/SWIGPlus.html4363// 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.html3870Don't forget to also provide a suitable <a href="#Typemaps_overloading">typemap for overloaded functions</a>, such as <tCODE
MEDIUMDoc/Manual/Lua.html2022As mentioned earlier, classes and structures, are all held as pointer, using the Lua 'userdata' structure. This structurCODE
MEDIUMDoc/Manual/Android.html87Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples introCODE
MEDIUMDoc/Manual/Android.html413Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples introCODE
MEDIUMDoc/Manual/Java.html4926Here is a simple example:CODE
MEDIUMDoc/Manual/Java.html5132or a NULL pointer perhaps). Here is a simple example of how you might handle that:CODE
MEDIUMDoc/Manual/Java.html8998as mentioned earlier, <tt>setElement</tt> is actually:CODE
Decorative Section Separators9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt23# ------------------------------------COMMENT
MEDIUMCMakeLists.txt90# --------------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.sh154 # Check if Python is already installed on cached toolsCOMMENT
LOWTools/CI-linux-install.sh182 # Check if ruby is already installed on cached toolsCOMMENT
LOWDoc/Manual/Tcl.html736% puts $density # Output value of C global variableCODE
LOWDoc/Manual/SWIG.html811set foo [3.5] ;# Set foo to 3.5CODE
LOWDoc/Manual/SWIG.html812puts $foo ;# Print the value of fooCODE
LOWDoc/Manual/SWIG.html815cvar.foo = 3.5 # Set foo to 3.5CODE
LOWDoc/Manual/SWIG.html816print(cvar.foo) # Print value of fooCODE
LOWDoc/Manual/SWIG.html819$foo = 3.5; # Set foo to 3.5CODE
LOWDoc/Manual/SWIG.html820print $foo, "\n"; # Print value of fooCODE
LOWDoc/Manual/SWIG.html823Module.foo = 3.5 # Set foo to 3.5CODE
LOWDoc/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 Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
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 Identifiers11 hits · 11 pts
SeverityFileLineSnippetContext
LOWExamples/test-suite/python/comment_verifier.py9 def make_trailing_spaces_visible(str):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
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
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWExamples/test-suite/python/swig_test_utils.py40CODE
LOWExamples/test-suite/python/cpp11_std_array_runme.py19CODE
LOWExamples/test-suite/python/cpp11_std_array_runme.py34CODE
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