Repository Analysis

micropython/micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems

10.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of micropython/micropython, a C project with 21,895 GitHub stars. SynthScan v2.0 examined 635,174 lines of code across 4657 source files, recording 6787 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 10.5 places this repository in the Low AI signal 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).

10.5
Adjusted Score
10.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
21.9K
Stars
C
Language
635.2K
Lines of Code
4.7K
Files
6.8K
Pattern Hits
2026-07-14
Scan Date
0.02
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 3HIGH 69MEDIUM 151LOW 6564

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 6787 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block5868 hits · 5035 pts
SeverityFileLineSnippetContext
LOWtools/uncrustify.cfg1# Uncrustify-0.71.0_fCOMMENT
LOWtools/uncrustify.cfg21#COMMENT
LOWtools/uncrustify.cfg41tok_split_gte = false # true/falseCOMMENT
LOWtools/uncrustify.cfg81#COMMENT
LOWtools/uncrustify.cfg101COMMENT
LOWtools/uncrustify.cfg221# prototype or function definition.COMMENT
LOWtools/uncrustify.cfg381#COMMENT
LOWtools/uncrustify.cfg701COMMENT
LOWtools/uncrustify.cfg721sp_member = remove # ignore/add/remove/forceCOMMENT
LOWtools/uncrustify.cfg781# (OC) Add or remove space between '@selector' and '(',COMMENT
LOWtools/uncrustify.cfg821COMMENT
LOWtools/uncrustify.cfg881COMMENT
LOWtools/uncrustify.cfg921COMMENT
LOWtools/uncrustify.cfg941# The continuation indent, only for class header line(s). If non-zero, thisCOMMENT
LOWtools/uncrustify.cfg1101# Indentation column for standalone 'throw' qualifier on a functionCOMMENT
LOWtools/uncrustify.cfg1161# >0: Absolute column where 1 is the leftmost columnCOMMENT
LOWtools/uncrustify.cfg1181# line so that it lines up after the open parenthesis (not recommended).COMMENT
LOWtools/uncrustify.cfg1241# followed by a newline, the next line indent is one tab.COMMENT
LOWtools/uncrustify.cfg1261indent_oc_msg_colon = 0 # unsigned numberCOMMENT
LOWtools/uncrustify.cfg1281COMMENT
LOWtools/uncrustify.cfg1301#COMMENT
LOWtools/uncrustify.cfg1541COMMENT
LOWtools/uncrustify.cfg1581# Add or remove newline between 'namespace' and '{'.COMMENT
LOWtools/uncrustify.cfg1601COMMENT
LOWtools/uncrustify.cfg1621COMMENT
LOWtools/uncrustify.cfg1641# Add or remove newline between 'class' and '{'.COMMENT
LOWtools/uncrustify.cfg1661COMMENT
LOWtools/uncrustify.cfg1841# Whether to add a newline after a virtual brace open with a non-empty body.COMMENT
LOWtools/uncrustify.cfg1961# is only one line so that the entire definition (prototype, braces, body) isCOMMENT
LOWtools/uncrustify.cfg2021# Requires nl_class_leave_one_liners=true. Overrides nl_before_func_body_defCOMMENT
LOWtools/uncrustify.cfg2041# of a function body.COMMENT
LOWtools/uncrustify.cfg2061COMMENT
LOWtools/uncrustify.cfg2101COMMENT
LOWtools/uncrustify.cfg2121nl_after_namespace = 0 # unsigned numberCOMMENT
LOWtools/uncrustify.cfg2141#COMMENT
LOWtools/uncrustify.cfg2181COMMENT
LOWtools/uncrustify.cfg2321# The span for aligning function-call parameters for single line functions.COMMENT
LOWtools/uncrustify.cfg2341# 1: Part of the variable 'void *foo;'COMMENT
LOWtools/uncrustify.cfg2381#COMMENT
LOWtools/uncrustify.cfg2401# 0: Don't align (default).COMMENT
LOWtools/uncrustify.cfg2421# The gap for aligning class member definitions.COMMENT
LOWtools/uncrustify.cfg2441align_struct_init_span = 0 # unsigned numberCOMMENT
LOWtools/uncrustify.cfg2461# 1: Part of type name: 'typedef int *pint;'COMMENT
LOWtools/uncrustify.cfg2481# an effect.COMMENT
LOWtools/uncrustify.cfg2561# on the ':'.COMMENT
LOWtools/uncrustify.cfg2581#COMMENT
LOWtools/uncrustify.cfg2641# and last lines of the comment are the same length.COMMENT
LOWtools/uncrustify.cfg2661cmt_insert_file_footer = "" # stringCOMMENT
LOWtools/uncrustify.cfg2681cmt_insert_oc_msg_header = "" # stringCOMMENT
LOWtools/uncrustify.cfg2721# Whether to enforce that all blocks of an 'if'/'else if'/'else' chain eitherCOMMENT
LOWtools/uncrustify.cfg2741mod_full_brace_nl = 0 # unsigned numberCOMMENT
LOWtools/uncrustify.cfg2861# (OC) Weight of getter type ('getter=') when organizing properties.COMMENT
LOWtools/uncrustify.cfg2921# Whether to indent case statements between #if, #else, and #endif.COMMENT
LOWtools/uncrustify.cfg2941COMMENT
LOWtools/uncrustify.cfg2961COMMENT
LOWtools/uncrustify.cfg2981# To prevent the double use of the indentation value, use this option with theCOMMENT
LOWtools/uncrustify.cfg3001# by default.COMMENT
LOWtools/uncrustify.cfg3021# Warn levels - 1: error, 2: warning (default), 3: noteCOMMENT
LOWtools/uncrustify.cfg3041# Ignore - do not do any changesCOMMENT
LOWtools/uncrustify.cfg3061# Example:COMMENT
5808 more matches not shown…
Excessive Try-Catch Wrapping234 hits · 324 pts
SeverityFileLineSnippetContext
LOWtools/manifestfile.py255 except Exception as er:CODE
LOWtools/manifestfile.py397 except Exception as e:CODE
MEDIUMtools/manifestfile.py633 print("Error: No mode specified.", file=sys.stderr)CODE
MEDIUMtools/pyboard.py244 print("Error: unable to find PTY device in startup line:", pty_line)CODE
MEDIUMtools/gen-cpydiff.py144 print("Error: Test has same output in CPython vs MicroPython: " + test_fullpath)CODE
LOWtools/ar_util.py90 except Exception:CODE
LOWtools/ar_util.py100 except Exception:CODE
MEDIUMtools/mpremote/mpremote/romfs.py141 print("Error: OSError {}".format(er), file=sys.stderr)CODE
LOWtools/autobuild/build-downloads.py98 except Exception as e:CODE
LOWtests/misc/print_exception.py37except Exception as e:CODE
LOWtests/misc/print_exception.py53except Exception as e:CODE
LOWtests/misc/print_exception.py63except Exception as e:CODE
LOWtests/misc/print_exception.py71 except Exception as e:CODE
LOWtests/misc/print_exception.py75except Exception as e:CODE
LOWtests/misc/print_exception.py89except Exception as e:CODE
LOWtests/misc/sys_settrace_subdir/sys_settrace_generic.py25 except Exception:CODE
MEDIUMtests/misc/sys_settrace_subdir/sys_settrace_generic.py21def test_exception():CODE
LOWtests/basics/class_setname_hazard.py135except Exception as e: # CPython raises RuntimeError, MicroPython propagates the original exceptionCODE
LOWtests/basics/string_tstring_parser1.py39except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py47except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py54except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py62except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py107except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py114except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py121except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py129except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py136except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py191except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py200except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py208except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py255except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py265except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py275except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py78except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py89except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py96except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py161except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py178except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py219except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py229except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py244except Exception as e:CODE
LOWtests/basics/string_tstring_parser1.py287except Exception as e:CODE
LOWtests/basics/generator_throw_nested.py11 except Exception:CODE
LOWtests/basics/generator_throw_nested.py15 except Exception:CODE
LOWtests/basics/generator_throw_nested.py19 except Exception:CODE
MEDIUMtests/basics/generator_throw_nested.py4def gen():CODE
LOWtests/basics/string_tstring_basic1.py128except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py35except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py56except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py62except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py87except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py96except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py102except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py111except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py120except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py211except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py218except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py225except Exception as e:CODE
LOWtests/basics/string_tstring_errors1.py232except Exception as e:CODE
LOWtests/basics/exception_chain.py13except Exception:CODE
174 more matches not shown…
Self-Referential Comments95 hits · 280 pts
SeverityFileLineSnippetContext
MEDIUMtools/metrics.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/manifestfile.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/codeformat.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/hci_trace_to_pcap.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/pyboard.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/gen-cpydiff.py1# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/ar_util.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/ar_util.py59 "# This file is a cache directory tag created by MicroPython.\n"CODE
MEDIUMtools/boardgen.py1# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/mpy-tool.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/mpy-tool.py326 # Create a dict mapping opcode value to opcode name.COMMENT
MEDIUMtools/mpy-tool.py1565 # Create the outer-level compiled module representing the whole .mpy file.COMMENT
MEDIUMtools/mpy-tool.py1709 # Define the string of frozen module names.COMMENT
MEDIUMtools/mpy-tool.py1724 # Define the array of pointers to frozen module content.COMMENT
MEDIUMtools/mpy_ld.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/mpy_ld.py569 # Create a relocation for each GOT entryCOMMENT
MEDIUMtools/makemanifest.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/pydfu.py2# This file is part of the OpenMV project.COMMENT
MEDIUMtools/pydfu.py7"""This module implements enough functionality to program the STM32F4xx overSTRING
MEDIUMtools/mpremote/mpremote/transport_serial.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/mpremote/mpremote/transport.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtools/mpremote/mpremote/commands.py282 # Create the destination if necessary.COMMENT
MEDIUMtools/mpremote/tests/test_filesystem.sh92# Create a local directory structure and copy it to `:` on the device.COMMENT
MEDIUMtools/mpremote/tests/test_mip_local_install.sh17# Create the smallest permissible ramdisk.COMMENT
MEDIUMtools/mpremote/tests/test_mount.sh6# Create a local directory structure and mount the parent directory on the device.COMMENT
MEDIUMtools/autobuild/build-downloads.py81 # Create the board markdown, which is the concatenation of theCOMMENT
MEDIUMtests/test_utils.py1# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtests/run-multitests.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtests/run-natmodtests.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtests/run-perfbench.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMtests/misc/cexample_subclass.py28 # Initialize base class.COMMENT
MEDIUMtests/basics/namedtuple1.py89# Creating an empty namedtuple should not segfaultCOMMENT
MEDIUMtests/multi_bluetooth/ble_gap_device_name.py65 # Create an empty service and start advertising.COMMENT
MEDIUMtests/cmdline/repl_autocomplete_underscore.py27# Create an instanceCOMMENT
MEDIUMtests/extmod/asyncio_lock_cancel.py26 # Create a lock and acquire it so the tasks below must waitCOMMENT
MEDIUMtests/extmod/deflate_compress_memory_error.py16# Create a compressor object.COMMENT
MEDIUMtests/extmod/select_poll_eintr.py52# Create the poller object.COMMENT
MEDIUMtests/extmod/select_ipoll.py39 # Create a second socket.COMMENT
MEDIUMtests/extmod/vfs_fat_mtime.py46 # Create an empty file, should have a timestamp.COMMENT
MEDIUMtests/extmod/btree_gc.py11# Create a BytesIO but don't keep a reference to it.COMMENT
MEDIUMtests/extmod/asyncio_event.py43 # Create a task waiting on the already-set eventCOMMENT
MEDIUMtests/extmod/vfs_lfs_mtime.py49 # Create an empty file, should have a timestamp.COMMENT
MEDIUMtests/extmod/vfs_lfs_superblock.py35# Create the block device from the static data (it will be read-only).COMMENT
MEDIUMtests/extmod/vfs_lfs_superblock.py38# Create the VFS explicitly, no auto-detection is needed for this.COMMENT
MEDIUMtests/extmod/asyncio_set_exception_handler.py29 # Create a task that raises and uses the custom exception handlerCOMMENT
MEDIUMtests/extmod/asyncio_set_exception_handler.py42 # Create a task, let it run, then await it (no exception should be printed)COMMENT
MEDIUMtests/extmod/asyncio_await_return.py18 # Create a task and await on itCOMMENT
MEDIUMtests/multi_net/tcp_client_rst.py35 # Create a poller for the connected socket.COMMENT
MEDIUMtests/multi_net/tls_dtls_server_client.py30 # Create a UDP socket and bind it to accept incoming connections.COMMENT
MEDIUMtests/multi_net/tls_dtls_server_client.py73 # Create a UDP socket and connect to the server.COMMENT
MEDIUMtests/multi_net/tls_dtls_server_client.py79 # Create a DTLS context and load the certificate.COMMENT
MEDIUMtests/ports/unix/mod_os.py1# This module is not entirely compatible with CPythonCOMMENT
MEDIUMextmod/asyncio/task.py4# This file contains the core TaskQueue based on a pairing heap, and the core Task class.COMMENT
MEDIUMextmod/asyncio/core.py246# Create a new task from a coroutine and run it until it finishesCOMMENT
MEDIUMextmod/asyncio/stream.py96# Create a TCP stream connection to a remote hostCOMMENT
MEDIUMdocs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMmpy-cross/mpy_cross/__init__.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMmpy-cross/mpy_cross/__main__.py3# This file is part of the MicroPython project, http://micropython.org/COMMENT
MEDIUMexamples/network/https_client_nonblocking.py50 # Create a TCP socket and connect to the server in non-blocking mode.COMMENT
MEDIUMexamples/network/https_client_nonblocking.py59 # Create an object to poll the SSL stream for readability/writability.COMMENT
35 more matches not shown…
Deep Nesting185 hits · 184 pts
SeverityFileLineSnippetContext
LOWtools/metrics.py108CODE
LOWtools/metrics.py123CODE
LOWtools/manifestfile.py577CODE
LOWtools/manifestfile.py258CODE
LOWtools/manifestfile.py290CODE
LOWtools/manifestfile.py336CODE
LOWtools/codeformat.py90CODE
LOWtools/codeformat.py135CODE
LOWtools/pyboard.py726CODE
LOWtools/pyboard.py825CODE
LOWtools/pyboard.py270CODE
LOWtools/pyboard.py462CODE
LOWtools/pyboard.py497CODE
LOWtools/pyboard.py656CODE
LOWtools/uf2conv.py64CODE
LOWtools/uf2conv.py214CODE
LOWtools/uf2conv.py258CODE
LOWtools/uf2conv.py330CODE
LOWtools/gen-cpydiff.py211CODE
LOWtools/ar_util.py132CODE
LOWtools/boardgen.py205CODE
LOWtools/boardgen.py242CODE
LOWtools/mpy-tool.py372CODE
LOWtools/mpy-tool.py404CODE
LOWtools/mpy-tool.py1389CODE
LOWtools/mpy-tool.py1429CODE
LOWtools/mpy-tool.py1509CODE
LOWtools/mpy-tool.py1858CODE
LOWtools/mpy-tool.py2086CODE
LOWtools/mpy-tool.py605CODE
LOWtools/mpy-tool.py720CODE
LOWtools/mpy_ld.py490CODE
LOWtools/mpy_ld.py538CODE
LOWtools/mpy_ld.py610CODE
LOWtools/mpy_ld.py905CODE
LOWtools/mpy_ld.py1146CODE
LOWtools/mpy_ld.py1234CODE
LOWtools/mpy_ld.py1442CODE
LOWtools/mpy_ld.py1575CODE
LOWtools/makemanifest.py73CODE
LOWtools/makemanifest.py125CODE
LOWtools/pydfu.py500CODE
LOWtools/mpremote/mpremote/transport_serial.py52CODE
LOWtools/mpremote/mpremote/transport_serial.py234CODE
LOWtools/mpremote/mpremote/transport_serial.py269CODE
LOWtools/mpremote/mpremote/transport_serial.py344CODE
LOWtools/mpremote/mpremote/transport_serial.py1040CODE
LOWtools/mpremote/mpremote/romfs.py76CODE
LOWtools/mpremote/mpremote/mip.py95CODE
LOWtools/mpremote/mpremote/mip.py134CODE
LOWtools/mpremote/mpremote/mip.py165CODE
LOWtools/mpremote/mpremote/repl.py6CODE
LOWtools/mpremote/mpremote/main.py487CODE
LOWtools/mpremote/mpremote/commands.py20CODE
LOWtools/mpremote/mpremote/commands.py134CODE
LOWtools/mpremote/mpremote/commands.py304CODE
LOWtools/mpremote/mpremote/commands.py345CODE
LOWtools/mpremote/mpremote/commands.py380CODE
LOWtools/mpremote/mpremote/commands.py458CODE
LOWtools/mpremote/mpremote/commands.py564CODE
125 more matches not shown…
Unused Imports174 hits · 174 pts
SeverityFileLineSnippetContext
LOWtools/manifestfile.py31CODE
LOWtools/boardgen.py72CODE
LOWtools/mpremote/mpremote/romfs.py3CODE
LOWtools/mpremote/mpremote/repl.py1CODE
LOWtests/run-internalbench.py11CODE
LOWtests/run-tests.py17CODE
LOWtests/run-tests.py17CODE
LOWtests/run-perfbench.py12CODE
LOWtests/basics/op_error.py59CODE
LOWtests/basics/int_bytes.py1CODE
LOWtests/basics/int_bytes_intbig.py1CODE
LOWtests/basics/int_bytes_int64.py1CODE
LOWtests/basics/import_star_nonmodule.py24CODE
LOWtests/basics/import_star_nonmodule.py29CODE
LOWtests/basics/import_star_nonmodule.py49CODE
LOWtests/basics/import_star_nonmodule.py54CODE
LOWtests/basics/import_star_nonmodule.py62CODE
LOWtests/micropython/const_math.py8CODE
LOWtests/micropython/const_error.py3CODE
LOWtests/extmod_hardware/machine_encoder.py13CODE
LOWtests/extmod_hardware/machine_sdcard_dma_align.py11CODE
LOWtests/cmdline/cmd_showbc.py160CODE
LOWtests/extmod/vfs_fat_ramdisk.py2CODE
LOWtests/extmod/machine_uart_irq_txidle.py12CODE
LOWtests/extmod/vfs_fat_more.py115CODE
LOWtests/extmod/vfs_rom.py4CODE
LOWtests/extmod/vfs_fat_finaliser.py4CODE
LOWtests/extmod/vfs_fat_finaliser.py4CODE
LOWtests/extmod/vfs_fat_finaliser.py34CODE
LOWtests/extmod/vfs_fat_finaliser.py34CODE
LOWtests/extmod/vfs_fat_finaliser.py53CODE
LOWtests/extmod/vfs_fat_finaliser.py53CODE
LOWtests/extmod/vfs_fat_oldproto.py2CODE
LOWtests/extmod/vfs_fat_oldproto.py2CODE
LOWtests/extmod/vfs_lfs.py4CODE
LOWtests/extmod/ssl_poll.py2CODE
LOWtests/extmod/vfs_userfs.py87CODE
LOWtests/extmod/vfs_userfs.py103CODE
LOWtests/extmod/vfs_userfs.py107CODE
LOWtests/extmod/vfs_userfs.py91CODE
LOWtests/extmod/vfs_userfs.py97CODE
LOWtests/extmod/framebuf_palette.py3CODE
LOWtests/extmod/vfs_fat_ramdisklarge.py4CODE
LOWtests/extmod/vfs_fat_mtime.py4CODE
LOWtests/extmod/vfs_lfs_mount.py61CODE
LOWtests/extmod/vfs_lfs_mount.py67CODE
LOWtests/extmod/vfs_lfs_mount.py73CODE
LOWtests/extmod/machine_spi_rate.py4CODE
LOWtests/extmod/vfs_fat_ilistdir_del.py4CODE
LOWtests/extmod/vfs_posix_readonly.py4CODE
LOWtests/multi_extmod/machine_can_04_tx_order.py2CODE
LOW…ts/multi_net/asyncio_tls_server_client_verify_error.py4CODE
LOWtests/multi_net/ssl_cert_ec.py5CODE
LOWtests/multi_net/ssl_cert_ec.py5CODE
LOWtests/multi_net/sslcontext_server_client_files.py4CODE
LOW…i_net/asyncio_tls_server_client_cert_required_error.py4CODE
LOWtests/multi_net/sslcontext_getpeercert.py5CODE
LOWtests/multi_net/asyncio_tls_server_client_readline.py4CODE
LOWtests/multi_net/sslcontext_check_hostname_error.py4CODE
LOWtests/multi_net/ssl_cert_rsa.py5CODE
114 more matches not shown…
Cross-Language Confusion31 hits · 168 pts
SeverityFileLineSnippetContext
HIGHtests/extmod/json_loads.py22my_print(json.loads("[null]"))CODE
HIGHtests/extmod/json_loads.py23my_print(json.loads("[null,false,true]"))CODE
HIGHtests/extmod/json_loads.py24my_print(json.loads(" [ null , false , true ] "))CODE
HIGHtests/extmod/json_loads.py27my_print(json.loads('{"a":null, "b":false, "c":true}'))CODE
HIGHtests/extmod/json_loads.py71 my_print(json.loads("[null] a"))CODE
HIGHtests/extmod/json_loads_bytes.py10print(json.loads(bytearray(b"[null]")))CODE
HIGHtests/jni/list.py14print(l.toString())CODE
HIGHtests/import/pkgstar_default/__init__.py1# When __all__ is undefined, star import should onlyCOMMENT
HIGHtests/perf_bench/misc_raytrace.py28 l = self.length()CODE
HIGHtests/perf_bench/misc_raytrace.py173 light_dist = light_vec.length()CODE
HIGHextmod/asyncio/task.py150 self.state.push(core.cur_task)CODE
HIGHextmod/asyncio/task.py171 core._task_queue.push(self)CODE
HIGHextmod/asyncio/task.py175 core._task_queue.push(self)CODE
HIGHextmod/asyncio/event.py21 core._task_queue.push(self.waiting.pop())CODE
HIGHextmod/asyncio/event.py31 self.waiting.push(core.cur_task)CODE
HIGHextmod/asyncio/core.py45 _task_queue.push(cur_task, self.state)CODE
HIGHextmod/asyncio/core.py119 _task_queue.push(sm[0])CODE
HIGHextmod/asyncio/core.py123 _task_queue.push(sm[1])CODE
HIGHextmod/asyncio/core.py147 _task_queue.push(t)CODE
HIGHextmod/asyncio/core.py219 _task_queue.push(t.state.pop())CODE
HIGHextmod/asyncio/core.py227 _task_queue.push(t)CODE
HIGHextmod/asyncio/core.py281 _task_queue.push(_stop_task)CODE
HIGHextmod/asyncio/funcs.py84 core._task_queue.push(gather_task)CODE
HIGHextmod/asyncio/lock.py27 core._task_queue.push(self.state)CODE
HIGHextmod/asyncio/lock.py36 self.waiting.push(core.cur_task)CODE
HIGHports/webassembly/asyncio/core.py42 _task_queue.push(cur_task, self.state)CODE
HIGHports/webassembly/asyncio/core.py89 _task_queue.push(self.waiting)CODE
HIGHports/webassembly/asyncio/core.py98 _task_queue.push(self.waiting)CODE
HIGHports/webassembly/asyncio/core.py184 _task_queue.push(t.state.pop())CODE
HIGHports/webassembly/asyncio/core.py192 _task_queue.push(t)CODE
HIGHports/webassembly/asyncio/core.py213 _task_queue.push(t)CODE
Cross-File Repetition24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHtests/micropython/viper_ptr32_store_boundary.py0@micropython.viper def set{off}(dest: ptr16): saved = dest dest[{off}] = {val} assert int(saved) == int(dest)STRING
HIGHtests/micropython/viper_ptr8_store_boundary.py0@micropython.viper def set{off}(dest: ptr16): saved = dest dest[{off}] = {val} assert int(saved) == int(dest)STRING
HIGHtests/micropython/viper_ptr16_store_boundary.py0@micropython.viper def set{off}(dest: ptr16): saved = dest dest[{off}] = {val} assert int(saved) == int(dest)STRING
HIGHports/esp32/boards/UM_TINYPICO/modules/tinypico.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_PROS3/modules/pros3.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_TINYS3/modules/tinys3.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_NANOS3/modules/nanos3.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_TINYS2/modules/tinys2.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_FEATHERS2/modules/feathers2.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_FEATHERS3/modules/feathers3.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_OMGS3/modules/omgs3.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGH…s/esp32/boards/UM_FEATHERS3NEO/modules/feathers3neo.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGH…s/esp32/boards/UM_FEATHERS2NEO/modules/feathers2neo.py0color wheel to allow for cycling through the rainbow of rgb colors.STRING
HIGHports/esp32/boards/UM_PROS3/modules/pros3.py0returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an appSTRING
HIGHports/esp32/boards/UM_TINYS3/modules/tinys3.py0returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an appSTRING
HIGHports/esp32/boards/UM_TINYS2/modules/tinys2.py0returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an appSTRING
HIGHports/esp32/boards/UM_FEATHERS3/modules/feathers3.py0returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an appSTRING
HIGH…s/esp32/boards/UM_FEATHERS3NEO/modules/feathers3neo.py0returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an appSTRING
HIGH…s/esp32/boards/UM_FEATHERS2NEO/modules/feathers2neo.py0returns the current battery voltage. if no battery is connected, returns 4.2v which is the charge voltage this is an appSTRING
HIGHports/esp32/boards/UM_TINYS3/modules/tinys3.py0enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep.STRING
HIGHports/esp32/boards/UM_NANOS3/modules/nanos3.py0enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep.STRING
HIGHports/esp32/boards/UM_TINYS2/modules/tinys2.py0enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep.STRING
HIGHports/esp32/boards/UM_OMGS3/modules/omgs3.py0enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep.STRING
HIGH…s/esp32/boards/UM_FEATHERS2NEO/modules/feathers2neo.py0enable or disable power to the onboard neopixel to either show colour, or to reduce power for deep sleep.STRING
Redundant / Tautological Comments50 hits · 78 pts
SeverityFileLineSnippetContext
LOWtools/codeformat.py91 # Read file.COMMENT
LOWtools/mpy-tool.py416 # Check if the bytecode_offset is small enough to use a 1-byte encoding.COMMENT
LOWtools/makemanifest.py217 # Check if output file needs generatingCOMMENT
LOWtools/mpremote/mpremote/mip.py48# Check if the specified path exists and matches the hash.COMMENT
LOWtools/mpremote/mpremote/main.py447 # Check if config file exists.COMMENT
LOWtools/mpremote/mpremote/commands.py662 # Check if ROMFS image is validCOMMENT
LOWtools/mpremote/mpremote/commands.py667 # Check if ROMFS filesystem image will fit in the target partition.COMMENT
LOWpy/makeversionhdr.py132 # Check if the file contents changed from last timeSTRING
LOWtests/serial_test.py155 # Print results.STRING
LOWtests/serial_test.py222 # Print results.STRING
LOWtests/serial_test.py261 # Print results.STRING
LOWtests/run-multitests.py513 # Check if truth exists in a file, and read it inSTRING
LOWtests/run-multitests.py531 # Print result of testSTRING
LOWtests/run-natmodtests.py224 # Print resultSTRING
LOWtests/run-tests.py777 # Check if micropython.native is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py782 # Check if arbitrary-precision integers are supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py787 # Check if 'long long' precision integers are supported, even if arbitrary precision is notCOMMENT
LOWtests/run-tests.py792 # Check if bytearray is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py797 # Check if set type (and set literals) is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py802 # Check if slice is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py807 # Check if async/await keywords are supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py812 # Check if const keyword (MicroPython extension) is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py817 # Check if __rOP__ special methods are supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py822 # Check if fstring feature is enabled, and skip such tests if it doesn'tCOMMENT
LOWtests/run-tests.py827 # Check if tstring feature is enabled, and skip such tests if it doesn'tCOMMENT
LOWtests/run-tests.py843 # Check if emacs repl is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py848 # Check if words movement in repl is supported, and skip such tests if it's notCOMMENT
LOWtests/run-tests.py1021 # Check if the target requested to skip this test.COMMENT
LOWtests/run-perfbench.py105 # Check if test should be skippedCOMMENT
LOWtests/basics/string_tstring_errors1.py242 # Check if we get the specific error message or generic oneCOMMENT
LOWtests/unicode/bytes_decode_ignore.py3# Check if decode method is available (requires MICROPY_CPYTHON_COMPAT)COMMENT
LOWtests/unicode/bytes_decode_ignore.py10# Check if error handlers are available (requires MICROPY_PY_BUILTINS_BYTES_DECODE_ERRORS)COMMENT
LOWtests/unicode/bytes_decode_encoding.py3# Check if decode method is available (requires MICROPY_CPYTHON_COMPAT)COMMENT
LOWtests/unicode/bytes_decode_replace.py3# Check if decode method is available (requires MICROPY_CPYTHON_COMPAT)COMMENT
LOWtests/unicode/bytes_decode_replace.py10# Check if error handlers are available (requires MICROPY_PY_BUILTINS_BYTES_DECODE_ERRORS)COMMENT
LOWtests/extmod/machine_rtc.py14# Set datetime to a known value.COMMENT
LOWtests/extmod/deflate_decompress.py2 # Check if deflate is available.COMMENT
LOWtests/extmod/deflate_compress_memory_error.py4 # Check if deflate is available.COMMENT
LOWtests/extmod/deflate_compress_memory_error.py11# Check if compression is enabled.COMMENT
LOWtests/extmod/asyncio_gather_finished_early.py59 # Print results.COMMENT
LOWtests/extmod/deflate_stream_error.py4 # Check if deflate & IOBase are available.COMMENT
LOWtests/extmod/deflate_stream_error.py12# Check if compression is enabled.COMMENT
LOWtests/extmod/deflate_compress.py2 # Check if deflate is available.COMMENT
LOWtests/extmod/deflate_compress.py9# Check if compression is enabled.COMMENT
LOWtests/perf_bench/misc_raytrace.py155 # Check if any objects hitCOMMENT
LOWtests/stress/bytecode_limit.py16# Print results at the end in case an intermediate value of n fails with MemoryError.COMMENT
LOWextmod/asyncio/task.py158 # Check if task is already finished.COMMENT
LOWexamples/esp32_wifi_csi/csi_basic.py82 # Check if frames are availableCOMMENT
LOWports/esp32/boards/UM_TINYPICO/modules/dotstar.py86 # Set auto_write to False temporarily so brightness setter does _not_COMMENT
LOWports/mimxrt/boards/make-flexram-config.py95 # Check if DTCM and ITCM size is either multiple of 32k or 4k,8k or 16kCOMMENT
Cross-Language Confusion (JS/TS)8 hits · 60 pts
SeverityFileLineSnippetContext
HIGHtests/ports/webassembly/register_js_module.js27print(js_module2.yes)CODE
HIGHtests/ports/webassembly/register_js_module.js28print(js_module2.add1(1))CODE
HIGHtests/ports/webassembly/register_js_module.js29print(js_module2.getThis())CODE
HIGHtests/ports/webassembly/register_js_module.js30print(js_module2.getThis().yes)CODE
HIGHtests/ports/webassembly/register_js_module.js39print(yes)CODE
HIGHtests/ports/webassembly/register_js_module.js40print(add1(2))CODE
HIGHtests/ports/webassembly/register_js_module.js41print(getThis())CODE
HIGHtests/ports/webassembly/register_js_module.js42print(getThis().yes)CODE
Synthetic Comment Markers6 hits · 45 pts
SeverityFileLineSnippetContext
HIGHports/renesas-ra/README.md66## Board definition auto-generated codeCOMMENT
HIGHports/cc3200/hal/timer.c261 // Set the output levels as requested.COMMENT
HIGHports/cc3200/hal/uart.c743 // Set the flow control mode as requested.COMMENT
HIGHports/cc3200/hal/uart.c1101 // Set the break condition as requested.COMMENT
HIGHports/esp8266/machine_pin.c285 // configure the GPIO as requestedCOMMENT
HIGHports/stm32/pin.c387 // configure the GPIO as requestedCOMMENT
Hyper-Verbose Identifiers43 hits · 41 pts
SeverityFileLineSnippetContext
LOWtools/pyboard.py406 def _enter_raw_repl_unprotected(self, soft_reset, timeout_overall):CODE
LOWtools/verifygitlog.py120def verify_subject_line_prefix(prefix, err):CODE
LOWtools/mpy-tool.py1085 def get_opcode_annotations_labels(CODE
LOWtools/mpy-tool.py1781def adjust_bytecode_qstr_obj_indices(bytecode_in, qstr_table_base, obj_table_base):CODE
LOWtools/mpy_ld.py1201def generate_entry_point_jump(env):CODE
LOWtools/makemanifest.py73def generate_frozen_str_content(modules):CODE
LOWtools/mpremote/mpremote/transport.py58def _convert_filesystem_error(e, info):CODE
LOWtools/mpremote/mpremote/main.py465def prepare_command_expansions(config):CODE
LOWtools/mpremote/mpremote/commands.py198def do_filesystem_recursive_cp(state, src, dest, multiple, check_hash):CODE
LOWtools/mpremote/mpremote/commands.py304def do_filesystem_recursive_rm(state, path, args):CODE
LOWpy/makeversionhdr.py22def get_version_info_from_git(repo_path):CODE
LOWpy/makeversionhdr.py71def get_version_info_from_mpconfig(repo_path):CODE
LOWpy/make_root_pointers.py17def find_root_pointer_registrations(filename):CODE
LOWpy/make_root_pointers.py27def generate_root_pointer_header(root_pointers):CODE
LOWpy/makemoduledefs.py34def find_module_registrations(filename):CODE
LOWpy/makemoduledefs.py47def generate_module_table_header(modules):CODE
LOWpy/makemoduledefs.py109def generate_module_delegations(delegations):CODE
LOWtests/test_utils.py130 def run_script_on_remote_target(self, args, test_file, is_special, requires_target_wiring):STRING
LOWtests/test_utils.py193def convert_device_shortcut_to_real_device(device):STRING
LOWtests/test_utils.py226def prepare_script_for_target(args, script_text, script_name, force_plain=False):STRING
LOWtests/test_utils.py255def run_script_on_remote_target(pyb, args, test_file, is_special, requires_target_wiring):STRING
LOWtests/run-tests.py417def detect_target_wiring_script(pyb, args):CODE
LOWtests/micropython/heapalloc_fail_tstring.py235def test_many_interpolations_heap():CODE
LOWtests/micropython/heapalloc_fail_tstring.py266def test_template_concat_heap():CODE
LOWtests/extmod_hardware/machine_sdcard_dma_align.py196 def test_interrupted_read_write(self):CODE
LOWtests/extmod/vfs_posix.py80def write_files_without_closing():CODE
LOWtests/extmod/asyncio_wait_for.py47async def task_wait_for_cancel_ignore(t_wait):CODE
LOWtests/extmod/marshal_fun_nested.py36def f_with_child_closure_defargs():CODE
LOWtests/extmod/marshal_fun_nested.py46def f_with_list_comprehension(a):CODE
LOWtests/extmod/select_ipoll.py38 def test_ipoll_multiple_sockets(self):CODE
LOWtests/extmod/asyncio_wait_for_fwd.py26async def test_cancellation_forwarded(catch, catch_inside):CODE
LOWtests/net_inet/resolve_on_connect.py20 def test_bind_resolves_localhost(self):CODE
LOWtests/net_inet/resolve_on_connect.py30 def test_connect_non_existent(self):CODE
LOWtests/net_hosted/connect_nonblock_xfer.py119 def test_plain_sockets_to_nowhere(self):CODE
LOWtests/net_hosted/connect_nonblock_xfer.py123 def test_ssl_sockets_to_nowhere(self):CODE
LOWtests/ports/rp2/rp2_dma.py86 def test_time_taken_for_large_memory_copy(self):CODE
LOWtests/ports/stm32_hardware/spi_dma_align.py19 def test_variable_offset_fixed_length(self):CODE
LOWtests/ports/stm32_hardware/spi_dma_align.py30 def test_variable_offset_and_lengths(self):CODE
LOWextmod/asyncio/core.py294 def default_exception_handler(loop, context):CODE
LOWports/stm32/boards/pllvalues.py229def search_header_for_hsx_values(filename):CODE
LOWports/stm32/boards/LEGO_HUB_NO6/appupdate.py19def _copy_file_to_raw_filesystem(filename, flash, block):CODE
LOWports/nrf/examples/ubluepy_eddystone.py31def generate_eddystone_adv_packet(url):CODE
LOWports/webassembly/asyncio/core.py242 def default_exception_handler(loop, context):CODE
AI Slop Vocabulary13 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMtools/uncrustify.cfg3004# Whether to apply special formatting for Qt SIGNAL/SLOT macros. Essentially,COMMENT
MEDIUMpy/emitnative.c27// Essentially normal Python has 1 type: Python objectsCOMMENT
MEDIUMpy/objmodule.c205 // built-in. Essentially, this makes it as if all the extensibleCOMMENT
MEDIUMtests/basics/string_format2.py1# comprehensive functionality test for {} format stringCOMMENT
LOWtests/basics/struct_micropython.py23# putting this in a dedicated test that can be skipped we simply passCOMMENT
MEDIUMtests/float/string_format2.py1# Change the following to True to get a much more comprehensive set of testsCOMMENT
MEDIUMtests/thread/stress_aes.py10# and then the test harness at the bottom. It can be tuned to be more/lessCOMMENT
MEDIUMtests/perf_bench/misc_aes.py7# and then the test harness at the bottom.COMMENT
MEDIUMexamples/natmod/features4/features4.c31// Essentially Factorial.__new__ (but also kind of __init__).COMMENT
MEDIUMports/esp32/modespnow.c841 // from the non-802.11b 6Mbit rate, for more robust error correctionCOMMENT
MEDIUMports/stm32/sdcard.c189 // makes it more robust to have the pins always pulled highCOMMENT
MEDIUMports/stm32/boards/LEGO_HUB_NO6/board_init.c94// This makes the update robust to power failures: if the update does not complete thenCOMMENT
MEDIUMports/stm32/boards/LEGO_HUB_NO7/board_init.c64// This makes the update robust to power failures: if the update does not complete thenCOMMENT
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALtests/basics/fun_code_colines.py21 obj.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.fun() # line 21: bc+31 line+1; bc+27 line+0CODE
CRITICALtests/basics/fun_code_colines.py30 obj2.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.fun() # line 30: bc+31 line+3; bc+27 line+0CODE
CRITICALtests/basics/fun_code_colines.py60 return obj3.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.fun() # line 60: bc+31 line+27; bc+27 line+0CODE
Dead Code9 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMtests/basics/gen_yield_from_stopped.py6CODE
MEDIUMtests/basics/stopiteration.py34CODE
MEDIUMtests/basics/generator_exc.py18CODE
MEDIUMtests/basics/generator_exc.py19CODE
MEDIUMtests/cmdline/cmd_showbc_opt.py7CODE
MEDIUMtests/cmdline/cmd_showbc_opt.py19CODE
MEDIUMtests/extmod/asyncio_exception.py14CODE
MEDIUMtests/extmod/asyncio_exception.py27CODE
MEDIUMtests/extmod/asyncio_exception.py54CODE
Verbosity Indicators9 hits · 18 pts
SeverityFileLineSnippetContext
LOWports/samd/machine_uart.c483 // Step 1: Configure the Pin mux.COMMENT
LOWports/samd/mcu/samd21/clock_config.c224 // Step 1: Set up the reference clockCOMMENT
LOWports/samd/mcu/samd21/clock_config.c251 // Step 2: Set the coarse and fine values.COMMENT
LOWports/samd/mcu/samd21/clock_config.c262 // Step 3: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOWports/samd/mcu/samd21/clock_config.c267 // Step 4: Start the DFLL and wait for the PLL lock. We just wait for the fine lock, sinceCOMMENT
LOWports/samd/mcu/samd51/clock_config.c262 // Step 1: Peripheral channel 0 is driven by GCLK4 and it feeds DFLL48MCOMMENT
LOWports/samd/mcu/samd51/clock_config.c266 // Step 2: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOWports/samd/mcu/samd51/clock_config.c271 // Step 3: Set the mode to closed loopCOMMENT
LOWports/samd/mcu/samd51/clock_config.c278 // Step 4: Start the DFLL.COMMENT
Structural Annotation Overuse9 hits · 18 pts
SeverityFileLineSnippetContext
LOWports/samd/machine_uart.c483 // Step 1: Configure the Pin mux.COMMENT
LOWports/samd/mcu/samd21/clock_config.c224 // Step 1: Set up the reference clockCOMMENT
LOWports/samd/mcu/samd21/clock_config.c251 // Step 2: Set the coarse and fine values.COMMENT
LOWports/samd/mcu/samd21/clock_config.c262 // Step 3: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOWports/samd/mcu/samd21/clock_config.c267 // Step 4: Start the DFLL and wait for the PLL lock. We just wait for the fine lock, sinceCOMMENT
LOWports/samd/mcu/samd51/clock_config.c262 // Step 1: Peripheral channel 0 is driven by GCLK4 and it feeds DFLL48MCOMMENT
LOWports/samd/mcu/samd51/clock_config.c266 // Step 2: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOWports/samd/mcu/samd51/clock_config.c271 // Step 3: Set the mode to closed loopCOMMENT
LOWports/samd/mcu/samd51/clock_config.c278 // Step 4: Start the DFLL.COMMENT
Decorative Section Separators5 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtools/mpy-tool.py191 MP_BC_BASE_RESERVED = (0x00) # ----------------CODE
MEDIUM…stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c30 // #--------------------------------------------------------------------------------COMMENT
MEDIUM…stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c43 // #--------------------------------------------------------------------------------COMMENT
MEDIUM…stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c557 // ##--------------------------------------------------------------------------------COMMENT
MEDIUM…stm32/boards/LEGO_HUB_NO6/bluetooth_init_cc2564C_1.5.c559 // ##--------------------------------------------------------------------------------COMMENT
Fake / Example Data8 hits · 10 pts
SeverityFileLineSnippetContext
LOWpy/emitbc.c47 byte dummy_data[DUMMY_DATA_SIZE];CODE
LOWpy/emitbc.c99 return emit->dummy_data;CODE
LOWpy/emitbc.c149 return emit->dummy_data;CODE
LOWpy/emitbc.c153 return emit->dummy_data;CODE
LOWextmod/btstack/modbluetooth_btstack.c631 sm_key_t dummy_key;CODE
LOWextmod/btstack/modbluetooth_btstack.c632 memset(dummy_key, 0, sizeof(dummy_key));CODE
LOWextmod/btstack/modbluetooth_btstack.c633 sm_set_er(dummy_key);CODE
LOWextmod/btstack/modbluetooth_btstack.c634 sm_set_ir(dummy_key);CODE
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWports/renesas-ra/machine_rtc.c54/// Example usage:COMMENT
LOWports/stm32/rtc.c47/// Example usage:COMMENT
LOWports/stm32/dac.c46/// Example usage:COMMENT
LOWports/stm32/accel.c46/// Example usage:COMMENT
LOWports/nrf/examples/powerup.py34# Example usage:COMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMexamples/network/http_server_simplistic_commented.py61 # ten lines of code, and you can use this technique for quick hacksSTRING
MEDIUMports/stm32/boards/NUCLEO_WB55/mboot_keys.h5// The above keys are for demonstration purposes only, do not use them in production!COMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/manifestfile.py35__all__ = ["ManifestFileError", "ManifestFile"]CODE
LOWtests/import/pkgstar_all_array/__init__.py1__all__ = ["publicFun", "PublicClass", "dynamicFun"]CODE
LOWmpy-cross/mpy_cross/__init__.py51__all__ = ["version", "compile", "run", "CrossCompileError"] + list(NATIVE_ARCHS.keys())CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtools/mpremote/mpremote/romfs.py47CODE
LOWtests/extmod/vfs_rom.py97CODE
LOWports/rp2/modules/rp2.py24CODE