Repository Analysis

dashingsoft/pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

26.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of dashingsoft/pyarmor, a Python project with 5,185 GitHub stars. SynthScan v2.0 examined 45,451 lines of code across 181 source files, recording 702 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 26.3 places this repository in the Moderate 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).

26.3
Adjusted Score
26.3
Raw Score
100%
Time Factor
2026-08-29
Last Push
5.2K
Stars
Python
Language
45.5K
Lines of Code
181
Files
702
Pattern Hits
2026-08-29
Scan Date
0.06
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 10MEDIUM 276LOW 416

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 702 distinct pattern matches across 17 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.

Decorative Section Separators226 hits · 664 pts
SeverityFileLineSnippetContext
MEDIUMplugins/check_ntp_time.py6# -----------------------------------------------------------COMMENT
MEDIUMplugins/check_ntp_time.py8# -----------------------------------------------------------COMMENT
MEDIUMplugins/check_ntp_time.py456# -----------------------------------------------------------COMMENT
MEDIUMplugins/check_ntp_time.py458# -----------------------------------------------------------COMMENT
MEDIUMtests/test-header.sh173# ======================================================================COMMENT
MEDIUMtests/test-header.sh176# ======================================================================COMMENT
MEDIUMtests/test-header.sh186# ======================================================================COMMENT
MEDIUMtests/test-header.sh189# ======================================================================COMMENT
MEDIUMtests/test-header.sh269# ======================================================================COMMENT
MEDIUMtests/test-header.sh273# ======================================================================COMMENT
MEDIUMtests/test-header.sh283# ======================================================================COMMENT
MEDIUMtests/test-header.sh287# ======================================================================COMMENT
MEDIUMtests/test-header.sh297# ======================================================================COMMENT
MEDIUMtests/test-header.sh300# ======================================================================COMMENT
MEDIUMtests/test-header.sh335# ======================================================================COMMENT
MEDIUMtests/test-header.sh339# ======================================================================COMMENT
MEDIUMtests/test-header.sh345# ======================================================================COMMENT
MEDIUMtests/test-header.sh349# ======================================================================COMMENT
MEDIUMtests/test-header.sh355# ======================================================================COMMENT
MEDIUMtests/test-header.sh359# ======================================================================COMMENT
MEDIUMtests/test-header.sh369# ======================================================================COMMENT
MEDIUMtests/test-header.sh373# ======================================================================COMMENT
MEDIUMtests/test-header.sh379# ======================================================================COMMENT
MEDIUMtests/test-header.sh387# ======================================================================COMMENT
MEDIUMtests/test-header.sh396# ======================================================================COMMENT
MEDIUMtests/test-header.sh401# ======================================================================COMMENT
MEDIUMtests/test-header.sh409# ======================================================================COMMENT
MEDIUMtests/test-header.sh412# ======================================================================COMMENT
MEDIUMtests/test-header.sh419# ======================================================================COMMENT
MEDIUMtests/test-header.sh422# ======================================================================COMMENT
MEDIUMtests/test-header.sh102# ======================================================================COMMENT
MEDIUMtests/test-header.sh104# ======================================================================COMMENT
MEDIUMtests/test-header.sh130# ======================================================================COMMENT
MEDIUMtests/test-header.sh134# ======================================================================COMMENT
MEDIUMtests/test-header.sh145# ======================================================================COMMENT
MEDIUMtests/test-header.sh147# ======================================================================COMMENT
MEDIUMtests/test-header.sh200# ======================================================================COMMENT
MEDIUMtests/test-header.sh208# ======================================================================COMMENT
MEDIUMtests/test-header.sh223# ======================================================================COMMENT
MEDIUMtests/test-header.sh232# ======================================================================COMMENT
MEDIUMtests/test-header.sh252# ======================================================================COMMENT
MEDIUMtests/test-header.sh256# ======================================================================COMMENT
MEDIUMtests/test-header.sh311# ======================================================================COMMENT
MEDIUMtests/test-header.sh314# ======================================================================COMMENT
MEDIUMtests/cross-test.sh3# ======================================================================COMMENT
MEDIUMtests/cross-test.sh7# ======================================================================COMMENT
MEDIUMtests/cross-test.sh42# ======================================================================COMMENT
MEDIUMtests/cross-test.sh46# ======================================================================COMMENT
MEDIUMtests/cross-test.sh65# ======================================================================COMMENT
MEDIUMtests/cross-test.sh69# ======================================================================COMMENT
MEDIUMtests/cross-test.sh121# ======================================================================COMMENT
MEDIUMtests/cross-test.sh125# ======================================================================COMMENT
MEDIUMtests/cross-test.sh200# ======================================================================COMMENT
MEDIUMtests/cross-test.sh204# ======================================================================COMMENT
MEDIUMtests/cross-test.sh245# ======================================================================COMMENT
MEDIUMtests/cross-test.sh249# ======================================================================COMMENT
MEDIUMtests/integration-test.sh163# ======================================================================COMMENT
MEDIUMtests/integration-test.sh166# ======================================================================COMMENT
MEDIUMtests/integration-test.sh176# ======================================================================COMMENT
MEDIUMtests/integration-test.sh179# ======================================================================COMMENT
166 more matches not shown…
Excessive Try-Catch Wrapping103 hits · 134 pts
SeverityFileLineSnippetContext
LOWgh.py351 except Exception as e:CODE
LOWtests.9/script_factory.py758 except Exception:CODE
LOWtests.9/script_factory.py764 except Exception as e:CODE
LOWplugins/check_docker.py4 except Exception:CODE
MEDIUMplugins/check_docker.py1def get_license_data():CODE
LOWplugins/check_gpu.py14 except Exception as e:CODE
MEDIUMplugins/check_gpu.py6def get_expiration_info():CODE
LOWplugins/check_multiple_machine.py7 except Exception:CODE
LOWplugins/check_multiple_machine.py22 except Exception:CODE
MEDIUMplugins/check_multiple_machine.py4def _get_license_data():CODE
LOWplugins/check_multi_mac.py4 except Exception:CODE
MEDIUMplugins/check_multi_mac.py1def get_license_data():CODE
LOWplugins/check_ntp_time.py464 except Exception:CODE
MEDIUMplugins/check_ntp_time.py461def _get_license_data():CODE
LOWtests/test-pyarmor.py14except Exception:CODE
LOWtests/test-sppmode.py69 except Exception:CODE
LOWtests/test-sppmode.py295 except Exception:CODE
LOWtests/test-sppmode.py505 except Exception as exc:CODE
MEDIUMtests/test-sppmode.py221def f():CODE
LOWtests/test-trial-pyarmor.py13except Exception:CODE
LOWtests/test-wraparmor.sh59except Exception:CODE
LOWtests/test-wraparmor.sh68 except Exception as err:CODE
LOWtests/function-test.sh1712except Exception:CODE
LOWtests/function-test.sh1720except Exception:CODE
LOWtests/data/wrapcase.py56except Exception as e:CODE
LOWtests/data/mfoo.py14 except Exception:CODE
LOWdocs.7/pyarmor-history.md50 except Exception:CODE
MEDIUMdocs.7/pyarmor-history.md25def find_module(self, fullname, path=None):CODE
LOWsrc/benchmark.py125 except Exception:CODE
MEDIUMsrc/benchmark.py120def verify_license(m):CODE
LOWsrc/register.py53 except Exception as e:CODE
LOWsrc/register.py198 except Exception:CODE
MEDIUMsrc/register.py36def query_keyinfo(key):CODE
LOWsrc/pyarmor.py1536 except Exception:CODE
MEDIUMsrc/pyarmor.py1533def excepthook(type, exc, traceback):CODE
LOWsrc/pytransform.py243 except Exception:CODE
LOWsrc/pytransform.py321 except Exception as e:CODE
LOWsrc/pytransform.py366 except Exception as e:CODE
MEDIUMsrc/pytransform.py170def check_armored(*names):CODE
LOWsrc/sppmode.py102 except Exception:CODE
LOWsrc/packer.py103 except Exception:CODE
LOWsrc/packer.py604 except Exception:CODE
MEDIUMsrc/packer.py99def relpath(path, start=os.curdir):CODE
MEDIUMsrc/packer.py592def _check_entry_script(filename):CODE
LOWsrc/user-guide.md1221 except Exception as err:CODE
LOWsrc/user-guide.md1275 except Exception:CODE
LOWsrc/user-guide.md1283 except Exception:CODE
MEDIUMsrc/utils.py805def get_registration_code():CODE
MEDIUMsrc/utils.py1140def relpath(path, start=os.curdir):CODE
MEDIUMsrc/utils.py1683def _urlopen(*args, **kwargs):CODE
LOWsrc/utils.py180 except Exception as e:CODE
LOWsrc/utils.py457 except Exception:CODE
LOWsrc/utils.py808 except Exception:CODE
LOWsrc/utils.py1144 except Exception:CODE
LOWsrc/utils.py1686 except Exception:CODE
LOWsrc/utils.py1727 except Exception:CODE
LOWsrc/pyarmor-deprecated.py46except Exception:CODE
LOWsrc/pyarmor-deprecated.py110 except Exception:STRING
LOWsrc/pyarmor-deprecated.py131 except Exception:STRING
MEDIUMsrc/pyarmor-deprecated.py103def _import_pytransform():CODE
43 more matches not shown…
Unused Imports121 hits · 92 pts
SeverityFileLineSnippetContext
LOWtests.8/samples/foo.py1CODE
LOWtests.8/samples/joker/__init__.py1CODE
LOWtests.8/samples/joker/__init__.py2CODE
LOWtests/test-pyarmor.py9CODE
LOWtests/test-trial-pyarmor.py7CODE
LOWtests/data/wrapcase.py1CODE
LOWdocs/conf.py16CODE
LOWdocs/conf.py17CODE
LOWdocs.7/conf.py16CODE
LOWdocs.7/conf.py17CODE
LOWsrc/pyarmor-deprecated.py32CODE
LOWsrc/pyarmor-deprecated.py35CODE
LOWsrc/pyimcore.py6CODE
LOWsrc/examples/helloworld/foo.py1CODE
LOWsrc/examples/cx_Freeze/hello.py1CODE
LOWsrc/examples/cx_Freeze/queens.py3CODE
LOWsrc/examples/simple/queens.py3CODE
LOWsrc/examples/pybench/With.py1CODE
LOWsrc/examples/pybench/systimes.py35CODE
LOWsrc/examples/pybench/CommandLine.py14CODE
LOWsrc/examples/pybench/Imports.py4CODE
LOWsrc/examples/pybench/Imports.py5CODE
LOWsrc/examples/pybench/Imports.py16CODE
LOWsrc/examples/pybench/Imports.py17CODE
LOWsrc/examples/pybench/Imports.py18CODE
LOWsrc/examples/pybench/Imports.py19CODE
LOWsrc/examples/pybench/Imports.py20CODE
LOWsrc/examples/pybench/Imports.py22CODE
LOWsrc/examples/pybench/Imports.py23CODE
LOWsrc/examples/pybench/Imports.py24CODE
LOWsrc/examples/pybench/Imports.py25CODE
LOWsrc/examples/pybench/Imports.py26CODE
LOWsrc/examples/pybench/Imports.py28CODE
LOWsrc/examples/pybench/Imports.py29CODE
LOWsrc/examples/pybench/Imports.py30CODE
LOWsrc/examples/pybench/Imports.py31CODE
LOWsrc/examples/pybench/Imports.py32CODE
LOWsrc/examples/pybench/Imports.py34CODE
LOWsrc/examples/pybench/Imports.py35CODE
LOWsrc/examples/pybench/Imports.py36CODE
LOWsrc/examples/pybench/Imports.py37CODE
LOWsrc/examples/pybench/Imports.py38CODE
LOWsrc/examples/pybench/Imports.py40CODE
LOWsrc/examples/pybench/Imports.py41CODE
LOWsrc/examples/pybench/Imports.py42CODE
LOWsrc/examples/pybench/Imports.py43CODE
LOWsrc/examples/pybench/Imports.py44CODE
LOWsrc/examples/pybench/Imports.py61CODE
LOWsrc/examples/pybench/Imports.py62CODE
LOWsrc/examples/pybench/Imports.py63CODE
LOWsrc/examples/pybench/Imports.py64CODE
LOWsrc/examples/pybench/Imports.py65CODE
LOWsrc/examples/pybench/Imports.py67CODE
LOWsrc/examples/pybench/Imports.py68CODE
LOWsrc/examples/pybench/Imports.py69CODE
LOWsrc/examples/pybench/Imports.py70CODE
LOWsrc/examples/pybench/Imports.py71CODE
LOWsrc/examples/pybench/Imports.py73CODE
LOWsrc/examples/pybench/Imports.py74CODE
LOWsrc/examples/pybench/Imports.py75CODE
61 more matches not shown…
Over-Commented Block79 hits · 76 pts
SeverityFileLineSnippetContext
LOWgh.py1#! /usr/bin/env python3COMMENT
LOWtests.9/script_factory.py1# -*- coding: utf-8 -*-COMMENT
LOWtests/test-header.sh381# Return 0 if auto wrap mode doesn't work in this versionCOMMENT
LOWtests/integration-test.sh401 || csih_bug "Case 1.1 FAILED"COMMENT
LOWtests/integration-test.sh421# || csih_bug "Case 1.3 FAILED: no foo.zip found"COMMENT
LOWtests/integration-test.sh1021# DEPRECATED from v5.6.0, no capsule could be generatedCOMMENT
LOWtests/integration-test.sh1041# || csih_bug "Case T1.2 FAILED: no dist/foo.py${extchar} found"COMMENT
LOWtests/integration-test.sh1061# Test functions in expired trial license. PART 5COMMENT
LOWtests/packer-test.sh41COMMENT
LOWdocs/conf.py1#!/usr/bin/env python3COMMENT
LOWdocs/conf.py21# documentation root, use os.path.abspath to make it absolute, like shown here.COMMENT
LOWdocs/conf.py61# The full version, including alpha/beta/rc tags.COMMENT
LOWdocs/conf.py81# The reST default role (used for this markup: `text`) to use for allCOMMENT
LOWdocs/conf.py101COMMENT
LOWdocs/conf.py121#html_theme_path = []COMMENT
LOWdocs/conf.py141# so a file named "default.css" will overwrite the builtin "default.css".COMMENT
LOWdocs/conf.py161# template names.COMMENT
LOWdocs/conf.py181COMMENT
LOWdocs/conf.py201# implements a search results scorer. If empty, the default will be used.COMMENT
LOWdocs/conf.py221}COMMENT
LOWdocs/conf.py281COMMENT
LOWscripts/build-package.sh61# Build binary wheelCOMMENT
LOWdocs.7/conf.py1#!/usr/bin/env python3COMMENT
LOWdocs.7/conf.py21# documentation root, use os.path.abspath to make it absolute, like shown here.COMMENT
LOWdocs.7/conf.py61# The full version, including alpha/beta/rc tags.COMMENT
LOWdocs.7/conf.py81# The reST default role (used for this markup: `text`) to use for allCOMMENT
LOWdocs.7/conf.py101COMMENT
LOWdocs.7/conf.py121#html_theme_path = []COMMENT
LOWdocs.7/conf.py141# so a file named "default.css" will overwrite the builtin "default.css".COMMENT
LOWdocs.7/conf.py161# template names.COMMENT
LOWdocs.7/conf.py181COMMENT
LOWdocs.7/conf.py201# implements a search results scorer. If empty, the default will be used.COMMENT
LOWdocs.7/conf.py221}COMMENT
LOWdocs.7/conf.py281COMMENT
LOWdocs.7/pyarmor-history.md241 {COMMENT
LOWsrc/benchmark.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/register.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/pyarmor.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/packer.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/packer.py21#COMMENT
LOWsrc/utils.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/pyarmor-deprecated.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/project.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/project.py21#COMMENT
LOWsrc/cli/bootstrap.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/hdinfo.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/bug.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/merge.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/command.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/command.py201 )COMMENT
LOWsrc/cli/config.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/register.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/generate.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/shell.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/resource.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/docker.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/model.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/context.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/plugin.py1#! /usr/bin/env pythonCOMMENT
LOWsrc/cli/mixer.py1#! /usr/bin/env pythonCOMMENT
19 more matches not shown…
Deep Nesting79 hits · 68 pts
SeverityFileLineSnippetContext
LOWsrc/register.py136CODE
LOWsrc/pyarmor.py66CODE
LOWsrc/pyarmor.py442CODE
LOWsrc/pyarmor.py570CODE
LOWsrc/pyarmor.py814CODE
LOWsrc/pyarmor.py883CODE
LOWsrc/pytransform.py247CODE
LOWsrc/pytransform.py284CODE
LOWsrc/sppmode.py85CODE
LOWsrc/packer.py282CODE
LOWsrc/packer.py592CODE
LOWsrc/cobuilder.py84CODE
LOWsrc/cobuilder.py131CODE
LOWsrc/utils.py88CODE
LOWsrc/utils.py449CODE
LOWsrc/utils.py572CODE
LOWsrc/utils.py605CODE
LOWsrc/utils.py813CODE
LOWsrc/utils.py971CODE
LOWsrc/utils.py996CODE
LOWsrc/utils.py1362CODE
LOWsrc/utils.py1383CODE
LOWsrc/utils.py1613CODE
LOWsrc/utils.py1697CODE
LOWsrc/pyarmor-deprecated.py375CODE
LOWsrc/pyarmor-deprecated.py407CODE
LOWsrc/pyarmor-deprecated.py644CODE
LOWsrc/build_meta.py52CODE
LOWsrc/cli/merge.py149CODE
LOWsrc/cli/command.py469CODE
LOWsrc/cli/config.py174CODE
LOWsrc/cli/config.py238CODE
LOWsrc/cli/register.py297CODE
LOWsrc/cli/register.py341CODE
LOWsrc/cli/register.py683CODE
LOWsrc/cli/register.py964CODE
LOWsrc/cli/generate.py196CODE
LOWsrc/cli/generate.py118CODE
LOWsrc/cli/shell.py329CODE
LOWsrc/cli/resource.py111CODE
LOWsrc/cli/resource.py181CODE
LOWsrc/cli/resource.py116CODE
LOWsrc/cli/__init__.py29CODE
LOWsrc/cli/context.py769CODE
LOWsrc/cli/plugin.py232CODE
LOWsrc/cli/mixer.py39CODE
LOWsrc/cli/mixer.py86CODE
LOWsrc/cli/__main__.py259CODE
LOWsrc/cli/repack.py518CODE
LOWsrc/cli/repack.py542CODE
LOWsrc/cli/repack.py603CODE
LOWsrc/cli/repack.py447CODE
LOWsrc/cli/repack.py768CODE
LOWsrc/cli/project.py105CODE
LOWsrc/cli/project.py264CODE
LOWsrc/cli/project.py861CODE
LOWsrc/cli/project.py1161CODE
LOWsrc/examples/pybench/CommandLine.py63CODE
LOWsrc/examples/pybench/CommandLine.py407CODE
LOWsrc/examples/pybench/pybench.py628CODE
19 more matches not shown…
Hyper-Verbose Identifiers51 hits · 53 pts
SeverityFileLineSnippetContext
LOWtests.8/accept_test.py212 def test_expired_local_iso_date(self):CODE
LOWtests.8/accept_test.py226 def test_bind_multiple_devices(self):CODE
LOWtests.8/accept_test.py268 def test_shared_runtime_package(self):CODE
LOWtests.8/accept_test.py286 def test_shared_runtime_package_with_outer_key(self):CODE
LOWtests.8/accept_test.py391 def test_bcc_with_nest_functions(self):CODE
LOWtests.8/test_pack.py94 def test_onefile_with_options(self):CODE
LOWtests/test-pyarmor.py85 def test_get_registration_code(self):CODE
LOWtests/test-pyarmor.py139 def test_do_capsule_with_force(self):CODE
LOWtests/test-pyarmor.py201 def test_do_encrypt_empty_file(self):CODE
LOWtests/test-sppmode.py267 def test_exception_with_local_var(self):CODE
LOWtests/test-sppmode.py277 def test_exception_with_local_cellvar(self):CODE
LOWtests/test-sppmode.py286 def test_exception_catch_not_exception(self):CODE
LOWtests/test-sppmode.py355 def test_child_function_when_parent_failed(self):CODE
LOWtests/test-sppmode.py458 def test_set_literal_insertion_order(self):CODE
LOWtests/test-sppmode.py465 def test_same_constans_used_by_many_times(self):CODE
LOWtests/test-sppmode.py674 def test_method_with_double_underline_arg(self):CODE
LOWtests/test-sppmode.py690 def test_property_with_double_underline(self):CODE
LOWtests/test-trial-pyarmor.py68 def test_get_registration_code(self):CODE
LOWtests/data/no_wrap.py15def _generate_ndarray_function_code(handle, op_name, func_name, signature_only=False):CODE
LOWsrc/benchmark.py158def import_first_no_obfuscated_module(name):CODE
LOWsrc/benchmark.py163def import_first_obfuscated_module(name):CODE
LOWsrc/benchmark.py168def re_import_no_obfuscated_module(name):CODE
LOWsrc/benchmark.py173def re_import_obfuscated_module(name):CODE
LOWsrc/benchmark.py178def run_empty_obfuscated_code_object(foo):CODE
LOWsrc/benchmark.py193def run_empty_no_obfuscated_code_object(foo):CODE
LOWsrc/benchmark.py208def import_many_obfuscated_modules(name, n=100):CODE
LOWsrc/benchmark.py214def import_many_no_obfuscated_modules(name, n=100):CODE
LOWsrc/pytransform.py402def _generate_project_capsule():CODE
LOWsrc/pytransform.py409def _generate_pytransform_key(licfile, pubkey):CODE
LOWsrc/packer.py382def __obfuscate_dependency_pkgs(package_names, obf_options, tempdir):CODE
LOWsrc/utils.py192def _get_download_license_info():CODE
LOWsrc/utils.py886def _build_pytransform_keylist(mod, code, closure):CODE
LOWsrc/utils.py1264def compatible_platform_names(platforms):CODE
LOWsrc/utils.py1613def _check_code_object_for_super_mode(co, lines, name):CODE
LOWsrc/utils.py1845def osx_is_universal_platforms(platforms):CODE
LOWsrc/build_meta.py52def _wheel_append_runtime_files(build_path, namever, pkgname):CODE
LOWsrc/cli/bootstrap.py30def check_prebuilt_runtime_library(platnames, extra=None, rtver=''):CODE
LOWsrc/cli/register.py217 def _register_offline_license(self, fzip, namelist):STRING
LOWsrc/cli/generate.py103 def _generate_obfuscated_script(self, res):CODE
LOWsrc/cli/context.py618 def runtime_simple_extension_name(self):STRING
LOWsrc/cli/core/__init__.py45def check_and_install_prebuilt_package():CODE
LOWsrc/cli/core/__init__.py93 def generate_obfuscated_script(ctx, res):CODE
LOWsrc/examples/helloworld/foo.py12def check_expired_date_by_ntp():CODE
LOWsrc/examples/helloworld/foo.py34def show_left_days_of_license():CODE
LOWsrc/examples/pybench/systimes.py106def process_time_clock_systimes():CODE
LOWsrc/examples/pybench/systimes.py109def wall_clock_clock_systimes():CODE
LOWsrc/examples/pybench/systimes.py133def ctypes_getprocesstimes_systimes():CODE
LOWsrc/polyfills/argparse.py531 def _format_action_invocation(self, action):CODE
LOWsrc/polyfills/argparse.py602 def _iter_indented_subactions(self, action):CODE
LOWsrc/polyfills/argparse.py1306 def add_mutually_exclusive_group(self, **kwargs):CODE
LOWsrc/helper/buildext.py254def make_macro_for_customized_bytecodes(bytecodes):STRING
Dead Code14 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMsrc/cli/register.py626CODE
MEDIUMsrc/cli/register.py627CODE
MEDIUMsrc/cli/register.py629CODE
MEDIUMsrc/cli/register.py630CODE
MEDIUMsrc/cli/register.py632CODE
MEDIUMsrc/cli/register.py633CODE
MEDIUMsrc/cli/register.py635CODE
MEDIUMsrc/cli/register.py636CODE
MEDIUMsrc/cli/register.py637CODE
MEDIUMsrc/cli/register.py639CODE
MEDIUMsrc/cli/register.py640CODE
MEDIUMsrc/cli/register.py641CODE
MEDIUMsrc/cli/register.py643CODE
MEDIUMsrc/cli/register.py645CODE
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHplugins/check_ntp_time.py371Convert a leap indicator to text. Parameters: leap -- leap indicator value Returns: corresponding messSTRING
HIGHplugins/check_ntp_time.py389Convert a NTP mode value to text. Parameters: mode -- NTP mode Returns: corresponding message RaiSTRING
HIGHplugins/check_ntp_time.py407Convert a stratum value to text. Parameters: stratum -- NTP stratum Returns: corresponding message STRING
HIGHplugins/check_ntp_time.py429Convert a reference clock identifier to text according to its stratum. Parameters: ref_id -- reference clock iSTRING
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHsrc/examples/cx_Freeze/queens.py0n queens problem. the (well-known) problem is due to niklaus wirth. this solution is inspired by dijkstra (structured prSTRING
HIGHsrc/examples/simple/queens.py0n queens problem. the (well-known) problem is due to niklaus wirth. this solution is inspired by dijkstra (structured prSTRING
HIGHsrc/examples/testmod/queens.py0n queens problem. the (well-known) problem is due to niklaus wirth. this solution is inspired by dijkstra (structured prSTRING
HIGHsrc/examples/py2exe/queens.py0n queens problem. the (well-known) problem is due to niklaus wirth. this solution is inspired by dijkstra (structured prSTRING
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMtests/test-sppmode.py419 # The following functions must obviously compile,COMMENT
MEDIUMtests/test-py2exe-sample.sh4# Create a projectCOMMENT
MEDIUMdocs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdocs.7/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMsrc/examples/build-with-project.sh51# Create a projectCOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHsrc/cli/shell.py446 item.push(x)CODE
HIGHsrc/cli/__main__.py229 ctx.push(options)CODE
AI Structural Patterns6 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/pyarmor.py408CODE
LOWsrc/utils.py996CODE
LOWsrc/polyfills/argparse.py762CODE
LOWsrc/polyfills/argparse.py804CODE
LOWsrc/polyfills/argparse.py896CODE
LOWsrc/polyfills/argparse.py1550CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/cli/repack.py648 # Set checksum to appease antiviral software.COMMENT
LOWsrc/helper/repack.py298 # Set checksum to appease antiviral software.COMMENT
Modern Structural Boilerplate3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/data/sound/effects/__init__.py1__all__ = ["echo", "surround"]CODE
LOWsrc/cli/plugin.py29__all__ = ['CodesignPlugin', 'MultiPythonPlugin', 'PlatformTagPlugin',CODE
LOWsrc/polyfills/argparse.py65__all__ = [CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test-wraparmor.sh3# Usage:COMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/examples/pybench/pybench.py168 If you change a test in some way, don't forget to increaseCODE
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/polyfills/argparse.py1976 # for regular arguments, just add them back into the listCOMMENT