AI Slop Code RIsk Monitor

micropython/micropython

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

11.5 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for micropython/micropython, a C project with 22,109 GitHub stars. SynthScan examined 657,188 lines of code across 4778 source files, recording 7158 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 11.5 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

11.5
Adjusted Signal
11.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
22.1K
Stars
C
Language
657.2K
Lines of Code
4.8K
Files
7.2K
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 36.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 3.4/100 · LOW

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

Agent Over-Engineering Ratio 8.6/100 · LOW

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

PR Review Velocity Impact 47.6/100 · MEDIUM

Which changes need focused human review? 7158 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 3HIGH 199MEDIUM 154LOW 6802

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 7158 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block6085 hits · 5233 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
6025 more matches not shown…
Empty Error Handlers129 hits · 640 pts
SeverityFileLineSnippetContext
HIGHtools/manifestfile.py402except ManifestIgnoreException:CODE
HIGHtools/pyboard.py350except (OSError, AttributeError):CODE
HIGHtools/ar_util.py100except Exception:CODE
HIGHtools/pydfu.py286except:CODE
HIGHtools/pydfu.py547except OSError:CODE
HIGHtools/mpremote/mpremote/transport_serial.py118except (OSError, AttributeError):CODE
HIGHtools/mpremote/mpremote/console.py259except Exception:CODE
HIGHtools/mpremote/mpremote/commands.py84except OSError:CODE
HIGHtools/mpremote/mpremote/commands.py279except FileExistsError:CODE
HIGHtools/mpremote/mpremote/commands.py183except OSError:CODE
HIGHpy/makeqstrdefs.py57except OSError:CODE
HIGHpy/makeqstrdefs.py176except IOError:CODE
HIGHpy/makeqstrdefs.py253except OSError:CODE
HIGHtests/run-tests.py592except ProcessLookupError:CODE
HIGHtests/misc/sys_settrace_subdir/sys_settrace_generic.py25except Exception:CODE
HIGHtests/basics/builtin_enumerate.py22except TypeError:CODE
HIGHtests/basics/stopiteration.py40except ValueError:CODE
HIGHtests/basics/fun_name.py23except AttributeError:CODE
HIGHtests/basics/getitem.py21except StopIteration:CODE
HIGHtests/basics/set_pop.py5except KeyError:CODE
HIGHtests/basics/array_micropython.py27except NotImplementedError:CODE
HIGHtests/basics/try_finally2.py14except ValueError:CODE
HIGHtests/basics/try_finally2.py29except ValueError:CODE
HIGHtests/basics/try_finally_return2.py90except NonExistingError:CODE
HIGHtests/basics/try_except_break.py71except:CODE
HIGHtests/basics/try_except_break.py69except:CODE
HIGHtests/basics/try_except_break.py67except:CODE
HIGHtests/basics/try_except_break.py65except:CODE
HIGHtests/basics/try_except_break.py63except:CODE
HIGHtests/basics/try_except_break.py61except:CODE
HIGHtests/basics/try_except_break.py59except:CODE
HIGHtests/basics/try_except_break.py57except:CODE
HIGHtests/basics/try_except_break.py55except:CODE
HIGHtests/basics/try_except_break.py53except:CODE
HIGHtests/basics/try_except_break.py51except:CODE
HIGHtests/basics/try_except_break.py49except:CODE
HIGHtests/basics/try_except_break.py47except:CODE
HIGHtests/basics/try_except_break.py45except:CODE
HIGHtests/basics/try_except_break.py43except:CODE
HIGHtests/basics/try_except_break.py41except:CODE
HIGHtests/basics/try_except_break.py39except:CODE
HIGHtests/basics/try_except_break.py37except:CODE
HIGHtests/basics/try_except_break.py35except:CODE
HIGHtests/basics/try_except_break.py33except:CODE
HIGHtests/basics/try_except_break.py31except:CODE
HIGHtests/basics/try_except_break.py29except:CODE
HIGHtests/basics/sys_getsizeof.py21except ImportError:CODE
HIGHtests/basics/try_error.py6except 1:CODE
HIGHtests/basics/try_error.py14except (1,):CODE
HIGHtests/basics/struct_micropython.py31except ImportError:CODE
HIGHtests/basics/generator_throw.py18except:CODE
HIGHtests/unicode/unicode_ure.py24except IndexError:CODE
HIGHtests/io/open_plus.py10except OSError:CODE
HIGHtests/io/open_plus.py43except OSError:CODE
HIGHtests/io/open_append.py10except OSError:CODE
HIGHtests/io/open_append.py33except OSError:CODE
HIGHtests/multi_bluetooth/perf_gatt_char_write.py121except OSError:CODE
HIGHtests/multi_bluetooth/ble_gap_advertise.py54except:CODE
HIGHtests/micropython/heapalloc_traceback.py15except:CODE
HIGHtests/micropython/emg_exc.py14except AttributeError:CODE
69 more matches not shown…
Excessive Try-Catch Wrapping233 hits · 322 pts
SeverityFileLineSnippetContext
LOWtools/manifestfile.py267 except Exception as er:CODE
LOWtools/manifestfile.py409 except Exception as e:CODE
MEDIUMtools/manifestfile.py702 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/mpremote/mpremote/console.py259 except Exception:CODE
LOWtools/autobuild/build-downloads.py98 except Exception as e:CODE
LOWtests/misc/print_exception.py37except Exception as e:CODE
LOW⚡tests/misc/print_exception.py53except Exception as e:CODE
LOW⚡tests/misc/print_exception.py63except Exception as e:CODE
LOW⚡tests/misc/print_exception.py71 except Exception as e:CODE
LOW⚡tests/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
LOW⚡tests/basics/string_tstring_parser1.py39except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py47except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py54except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py62except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py107except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py114except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py121except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py129except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py136except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py191except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py200except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py208except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py255except Exception as e:CODE
LOW⚡tests/basics/string_tstring_parser1.py265except Exception as e:CODE
LOW⚡tests/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
LOW⚡tests/basics/generator_throw_nested.py11 except Exception:CODE
LOW⚡tests/basics/generator_throw_nested.py15 except Exception:CODE
LOW⚡tests/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
LOW⚡tests/basics/string_tstring_errors1.py87except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py96except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py102except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py111except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py120except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py211except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py218except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py225except Exception as e:CODE
LOW⚡tests/basics/string_tstring_errors1.py232except Exception as e:CODE
173 more matches not shown…
Self-Referential Comments96 hits · 282 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.py641 # 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.sh66# Create a local directory structure and copy it to `:` on the device.COMMENT
MEDIUMtools/mpremote/tests/test_unicode.sh11# Create a RAM disk for testingCOMMENT
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
MEDIUM⚡tests/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
36 more matches not shown…
Deep Nesting190 hits · 188 pts
SeverityFileLineSnippetContext
LOWtools/metrics.py108CODE
LOWtools/metrics.py123CODE
LOWtools/manifestfile.py646CODE
LOWtools/manifestfile.py270CODE
LOWtools/manifestfile.py302CODE
LOWtools/manifestfile.py348CODE
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.py559CODE
LOWtools/mpy_ld.py607CODE
LOWtools/mpy_ld.py688CODE
LOWtools/mpy_ld.py983CODE
LOWtools/mpy_ld.py1224CODE
LOWtools/mpy_ld.py1312CODE
LOWtools/mpy_ld.py1557CODE
LOWtools/mpy_ld.py1690CODE
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.py1046CODE
LOWtools/mpremote/mpremote/romfs.py76CODE
LOWtools/mpremote/mpremote/transport.py36CODE
LOWtools/mpremote/mpremote/mip.py95CODE
LOWtools/mpremote/mpremote/mip.py134CODE
LOWtools/mpremote/mpremote/mip.py165CODE
LOWtools/mpremote/mpremote/repl.py6CODE
LOWtools/mpremote/mpremote/main.py493CODE
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
130 more matches not shown…
Unused Imports178 hits · 178 pts
SeverityFileLineSnippetContext
LOWtools/manifestfile.py32CODE
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/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
LOWtests/multi_net/ssl_cert_rsa.py5CODE
118 more matches not shown…
Cross-Language Confusion32 hits · 172 pts
SeverityFileLineSnippetContext
HIGH⚡tests/extmod/json_loads.py22my_print(json.loads("[null]"))CODE
HIGH⚡tests/extmod/json_loads.py23my_print(json.loads("[null,false,true]"))CODE
HIGH⚡tests/extmod/json_loads.py24my_print(json.loads(" [ null , false , true ] "))CODE
HIGH⚡tests/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
HIGHexamples/rp2/pio_quadrature_encoder.py80 mov(isr, null)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 Comments52 hits · 82 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.py236 # Check if output file needs generatingCOMMENT
LOWtools/mpremote/mpremote/transport.py65 # Check if error is at the end (incomplete sequence) vs middle (invalid)COMMENT
LOWtools/mpremote/mpremote/mip.py48# Check if the specified path exists and matches the hash.COMMENT
LOWtools/mpremote/mpremote/main.py453 # Check if config file exists.COMMENT
LOWtools/mpremote/mpremote/commands.py663 # Check if ROMFS image is validCOMMENT
LOWtools/mpremote/mpremote/commands.py668 # Check if ROMFS filesystem image will fit in the target partition.COMMENT
LOWtools/mpremote/tests/run-mpremote-tests.sh81 # Check if test was skipped (matches main test runner convention)COMMENT
LOWpy/makeversionhdr.py132 # Check if the file contents changed from last timeSTRING
LOWtests/serial_test.py178 # Print results.STRING
LOWtests/serial_test.py245 # Print results.STRING
LOWtests/serial_test.py284 # 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
LOW⚡tests/run-tests.py777 # Check if micropython.native is supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py782 # Check if arbitrary-precision integers are supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py787 # Check if 'long long' precision integers are supported, even if arbitrary precision is notCOMMENT
LOW⚡tests/run-tests.py792 # Check if bytearray is supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py797 # Check if set type (and set literals) is supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py802 # Check if slice is supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py807 # Check if async/await keywords are supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py812 # Check if const keyword (MicroPython extension) is supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py817 # Check if __rOP__ special methods are supported, and skip such tests if it's notCOMMENT
LOW⚡tests/run-tests.py822 # Check if fstring feature is enabled, and skip such tests if it doesn'tCOMMENT
LOW⚡tests/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
LOW⚡tests/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
LOW⚡tests/extmod/deflate_compress_memory_error.py4 # Check if deflate is available.COMMENT
LOW⚡tests/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
HIGH⚡tests/ports/webassembly/register_js_module.js27print(js_module2.yes)CODE
HIGH⚡tests/ports/webassembly/register_js_module.js28print(js_module2.add1(1))CODE
HIGH⚡tests/ports/webassembly/register_js_module.js29print(js_module2.getThis())CODE
HIGH⚡tests/ports/webassembly/register_js_module.js30print(js_module2.getThis().yes)CODE
HIGH⚡tests/ports/webassembly/register_js_module.js39print(yes)CODE
HIGH⚡tests/ports/webassembly/register_js_module.js40print(add1(2))CODE
HIGH⚡tests/ports/webassembly/register_js_module.js41print(getThis())CODE
HIGH⚡tests/ports/webassembly/register_js_module.js42print(getThis().yes)CODE
Hyper-Verbose Identifiers53 hits · 51 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.py1279def generate_entry_point_jump(env):CODE
LOWtools/makemanifest.py73def generate_frozen_str_content(modules):CODE
LOWtools/mpremote/mpremote/transport.py115def _convert_filesystem_error(e, info):CODE
LOWtools/mpremote/mpremote/main.py471def 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
LOWtools/mpremote/mpremote/commands.py566def _do_romfs_query_partition(transport, rom_id):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/tools/test_manifestfile.py41 def test_path_is_file_not_dir(self):CODE
LOWtests/tools/test_manifestfile.py47 def test_dir_missing_module_files(self):CODE
LOWtests/tools/test_manifestfile.py62 def test_accepts_dir_with_cmake(self):CODE
LOWtests/tools/test_manifestfile.py69 def test_path_var_substitution(self):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/machine_timer.py43 def test_hardware_create_multiple(self):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
LOWexamples/rp2/pio_quadrature_encoder.py63def encoder_state_changed_irq_handler(sm):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
LOWports/psoc-edge/tools/mp-ifx-flash.py79 def is_openocd_already_downloaded():CODE
LOWports/psoc-edge/tools/mp-ifx-flash.py91 def is_openocd_already_in_sys_path():CODE
LOWports/psoc-edge/tools/mp-ifx-flash.py115 def get_openocd_file_url_name():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
AI Slop Vocabulary14 hits · 39 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
LOWports/psoc-edge/tools/mp-ifx-flash.py358 # TODO: Subcommand: from-remote (just pass the board and optionally the version, and the tool will fetch the latest COMMENT
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
Decorative Section Separators7 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtools/mpy-tool.py191 MP_BC_BASE_RESERVED = (0x00) # ----------------CODE
MEDIUMtests/ports/psoc-edge/unique_id.py3# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/ports/psoc-edge/unique_id.py7# ---------------------------------------------------------------------------COMMENT
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
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
LOW⚡ports/samd/mcu/samd21/clock_config.c262 // Step 3: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOW⚡ports/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
LOW⚡ports/samd/mcu/samd51/clock_config.c262 // Step 1: Peripheral channel 0 is driven by GCLK4 and it feeds DFLL48MCOMMENT
LOW⚡ports/samd/mcu/samd51/clock_config.c266 // Step 2: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOW⚡ports/samd/mcu/samd51/clock_config.c271 // Step 3: Set the mode to closed loopCOMMENT
LOW⚡ports/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
LOW⚡ports/samd/mcu/samd21/clock_config.c262 // Step 3: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOW⚡ports/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
LOW⚡ports/samd/mcu/samd51/clock_config.c262 // Step 1: Peripheral channel 0 is driven by GCLK4 and it feeds DFLL48MCOMMENT
LOW⚡ports/samd/mcu/samd51/clock_config.c266 // Step 2: Set the multiplication values. The offset of 16384 to the freq is for rounding.COMMENT
LOW⚡ports/samd/mcu/samd51/clock_config.c271 // Step 3: Set the mode to closed loopCOMMENT
LOW⚡ports/samd/mcu/samd51/clock_config.c278 // Step 4: Start the DFLL.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
LOW⚡extmod/btstack/modbluetooth_btstack.c631 sm_key_t dummy_key;CODE
LOW⚡extmod/btstack/modbluetooth_btstack.c632 memset(dummy_key, 0, sizeof(dummy_key));CODE
LOW⚡extmod/btstack/modbluetooth_btstack.c633 sm_set_er(dummy_key);CODE
LOW⚡extmod/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.py36__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