AI Slop Code RIsk Monitor

ansible/awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.

28.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ansible/awx, a Python project with 15,586 GitHub stars. SynthScan examined 201,224 lines of code across 1383 source files, recording 4507 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 28.4 (Elevated 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.

28.4
Adjusted Signal
28.4
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
15.6K
Stars
Python
Language
201.2K
Lines of Code
1.4K
Files
4.5K
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 59.4/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 18.1/100 · LOW

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

Agent Over-Engineering Ratio 64.6/100 · HIGH

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

PR Review Velocity Impact 77.3/100 · CRITICAL

Which changes need focused human review? 4507 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 30HIGH 124MEDIUM 284LOW 4069

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 4507 distinct pattern matches across 24 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.

Hyper-Verbose Identifiers2812 hits · 2872 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/ws.py146 def pending_project_update_stdout(self):CODE
LOWawxkit/awxkit/ws.py152 def pending_inventory_update_stdout(self):CODE
LOWawxkit/awxkit/ws.py164 def pending_system_job_events(self):CODE
LOWawxkit/awxkit/ws.py167 def subscribe_to_pending_events(self, events, jobs=[status_changed]):CODE
LOWawxkit/awxkit/utils/__init__.py303def set_payload_foreign_key_args(payload, fk_fields, kwargs):CODE
LOWawxkit/awxkit/utils/__init__.py385def seconds_since_date_string(date_str, fmt='%Y-%m-%dT%H:%M:%S.%fZ', default_tz=UTC()):CODE
LOWawxkit/awxkit/cli/format.py42def add_authentication_arguments(parser, env):CODE
LOWawxkit/awxkit/cli/format.py83def add_formatting_import_export(parser, env):CODE
LOWawxkit/awxkit/cli/format.py96def add_output_formatting_arguments(parser, env):CODE
LOWawxkit/awxkit/api/mixins/has_notifications.py10 def add_notification_template(self, notification_template, endpoint="notification_templates_success"):CODE
LOWawxkit/awxkit/api/mixins/has_notifications.py19 def remove_notification_template(self, notification_template, endpoint="notification_templates_success"):CODE
LOWawxkit/awxkit/api/mixins/has_create.py27def optional_dependency_graph(page, *provided_dependencies):CODE
LOWawxkit/awxkit/api/mixins/has_create.py101def all_instantiated_dependencies(*potential_parents):CODE
LOWawxkit/awxkit/api/mixins/has_create.py250 def create_and_update_dependencies(self, *provided_and_desired_dependencies):CODE
LOWawxkit/awxkit/api/mixins/has_instance_groups.py15 def remove_all_instance_groups(self):CODE
LOWawxkit/awxkit/api/pages/credentials.py106def kind_and_config_cred_from_credential_type(credential_type):CODE
LOWawxkit/awxkit/api/pages/credentials.py127def get_payload_field_and_value_from_kwargs_or_config_cred(field, kind, kwargs, config_cred):CODE
LOWawxkit/awxkit/api/pages/credentials.py281 def expected_passwords_needed_to_start(self):CODE
LOWawxkit/awxkit/api/pages/page.py332def exception_from_status_code(status_code):CODE
LOW⚡awxkit/test/test_registry.py24def test_methodless_get_from_empty_registry(reg):CODE
LOW⚡awxkit/test/test_registry.py28def test_method_get_from_empty_registry(reg):CODE
LOW⚡awxkit/test/test_registry.py32def test_methodless_setdefault_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py37def test_methodless_setdefault_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py42def test_method_setdefault_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py47def test_method_setdefault_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py52def test_method_setdefault_nonmatching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py57def test_multimethod_setdefault_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py63def test_multimethod_setdefault_nonmatching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py69def test_wildcard_setdefault_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py74def test_wildcard_setdefault_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py79def test_regex_method_setdefaults_over_wildcard_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py86def test_methodless_registration_with_matching_path_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py91def test_methodless_registraion_with_nonmatching_path_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py96def test_methodless_registration_with_matching_path_nonmatching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py101def test_method_registration_with_matching_path_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py106def test_method_registration_with_matching_path_nonmatching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py111def test_multimethod_registration_with_matching_path_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py117def test_multimethod_registration_with_path_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py122def test_multipath_methodless_registration_with_matching_path_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py128def test_multipath_methodless_registration_with_matching_path_nonmatching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py134def test_multipath_method_registration_with_matching_path_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py140def test_multipath_partial_method_registration_with_matching_path_matching_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py146def test_wildcard_method_registration_with_methodless_get(reg):CODE
LOW⚡awxkit/test/test_registry.py151def test_wildcard_method_registration_with_method_get(reg):CODE
LOW⚡awxkit/test/test_registry.py156def test_wildcard_and_specific_method_registration_acts_as_default(reg):CODE
LOW⚡awxkit/test/test_registry.py167def test_multiple_method_registrations_disallowed_for_single_path_single_registration(reg, method):CODE
LOW⚡awxkit/test/test_registry.py174def test_multiple_method_registrations_disallowed_for_single_path_multiple_registrations(reg, method):CODE
LOW⚡awxkit/test/test_registry.py181def test_paths_can_be_patterns(reg):CODE
LOW⚡awxkit/test/test_registry.py186def test_mixed_form_single_registration(reg):CODE
LOWawxkit/test/test_registry.py205def test_mixed_form_single_registration_with_methodless_default(reg):CODE
LOWawxkit/test/test_registry.py225def test_mixed_form_single_registration_with_method_default(reg):CODE
LOW⚡awxkit/test/test_utils.py74def test_load_valid_json_or_yaml(inp, out):CODE
LOW⚡awxkit/test/test_utils.py79def test_load_invalid_json_or_yaml(inp):CODE
LOW⚡awxkit/test/test_utils.py86def test_random_titles_are_unicode(non_ascii):CODE
LOW⚡awxkit/test/test_utils.py92def test_random_titles_generates_correct_characters(non_ascii):CODE
LOW⚡awxkit/test/test_utils.py161def test_filter_by_class_with_subclass_class():CODE
LOW⚡awxkit/test/test_utils.py166def test_filter_by_class_with_subclass_instance():CODE
LOW⚡awxkit/test/test_utils.py173def test_filter_by_class_no_arg_tuples():CODE
LOW⚡awxkit/test/test_utils.py179def test_filter_by_class_with_arg_tuples_containing_class():CODE
LOW⚡awxkit/test/test_utils.py186def test_filter_by_class_with_arg_tuples_containing_subclass():CODE
2752 more matches not shown…
Unused Imports486 hits · 457 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/__init__.py1CODE
LOWawxkit/awxkit/__init__.py1CODE
LOWawxkit/awxkit/__init__.py1CODE
LOWawxkit/awxkit/__init__.py2CODE
LOWawxkit/awxkit/__init__.py3CODE
LOWawxkit/awxkit/__init__.py4CODE
LOWawxkit/awxkit/cli/client.py1CODE
LOWawxkit/awxkit/cli/client.py14CODE
LOWawxkit/awxkit/cli/client.py14CODE
LOWawxkit/awxkit/cli/client.py16CODE
LOWawxkit/awxkit/cli/utils.py1CODE
LOWawxkit/awxkit/cli/stdout.py2CODE
LOWawxkit/awxkit/scripts/basic_session.py3CODE
LOWawxkit/awxkit/scripts/basic_session.py7CODE
LOWawxkit/awxkit/scripts/basic_session.py7CODE
LOWawxkit/awxkit/scripts/basic_session.py8CODE
LOWawxkit/awxkit/scripts/basic_session.py8CODE
LOWawxkit/awxkit/scripts/basic_session.py8CODE
LOWawxkit/awxkit/api/__init__.py1CODE
LOWawxkit/awxkit/api/__init__.py2CODE
LOWawxkit/awxkit/api/mixins/__init__.py1CODE
LOWawxkit/awxkit/api/mixins/__init__.py2CODE
LOWawxkit/awxkit/api/mixins/__init__.py3CODE
LOWawxkit/awxkit/api/mixins/__init__.py4CODE
LOWawxkit/awxkit/api/mixins/__init__.py5CODE
LOWawxkit/awxkit/api/mixins/__init__.py6CODE
LOWawxkit/awxkit/api/mixins/__init__.py7CODE
LOWawxkit/awxkit/api/pages/__init__.py2CODE
LOWawxkit/awxkit/api/pages/__init__.py3CODE
LOWawxkit/awxkit/api/pages/__init__.py4CODE
LOWawxkit/awxkit/api/pages/__init__.py5CODE
LOWawxkit/awxkit/api/pages/__init__.py6CODE
LOWawxkit/awxkit/api/pages/__init__.py7CODE
LOWawxkit/awxkit/api/pages/__init__.py8CODE
LOWawxkit/awxkit/api/pages/__init__.py9CODE
LOWawxkit/awxkit/api/pages/__init__.py10CODE
LOWawxkit/awxkit/api/pages/__init__.py11CODE
LOWawxkit/awxkit/api/pages/__init__.py12CODE
LOWawxkit/awxkit/api/pages/__init__.py13CODE
LOWawxkit/awxkit/api/pages/__init__.py14CODE
LOWawxkit/awxkit/api/pages/__init__.py15CODE
LOWawxkit/awxkit/api/pages/__init__.py16CODE
LOWawxkit/awxkit/api/pages/__init__.py17CODE
LOWawxkit/awxkit/api/pages/__init__.py18CODE
LOWawxkit/awxkit/api/pages/__init__.py19CODE
LOWawxkit/awxkit/api/pages/__init__.py20CODE
LOWawxkit/awxkit/api/pages/__init__.py21CODE
LOWawxkit/awxkit/api/pages/__init__.py22CODE
LOWawxkit/awxkit/api/pages/__init__.py23CODE
LOWawxkit/awxkit/api/pages/__init__.py24CODE
LOWawxkit/awxkit/api/pages/__init__.py25CODE
LOWawxkit/awxkit/api/pages/__init__.py26CODE
LOWawxkit/awxkit/api/pages/__init__.py27CODE
LOWawxkit/awxkit/api/pages/__init__.py28CODE
LOWawxkit/awxkit/api/pages/__init__.py29CODE
LOWawxkit/awxkit/api/pages/__init__.py30CODE
LOWawxkit/awxkit/api/pages/__init__.py31CODE
LOWawxkit/awxkit/api/pages/__init__.py32CODE
LOWawxkit/awxkit/api/pages/__init__.py33CODE
LOWawxkit/awxkit/api/pages/__init__.py34CODE
426 more matches not shown…
Empty Error Handlers90 hits · 450 pts
SeverityFileLineSnippetContext
HIGHawxkit/awxkit/cli/sphinx.py59except SystemExit:CODE
HIGHawxkit/awxkit/cli/sphinx.py71except SystemExit:CODE
HIGHawxkit/awxkit/cli/custom.py297except NoContent:CODE
HIGHawxkit/awxkit/cli/custom.py495except NoContent:CODE
HIGHawxkit/awxkit/cli/client.py314except SystemExit:CODE
HIGHawxkit/awxkit/api/mixins/has_create.py199except ImportError:CODE
HIGHawxkit/awxkit/api/pages/workflow_approvals.py11except exceptions.NoContent:CODE
HIGHawxkit/awxkit/api/pages/workflow_approvals.py17except exceptions.NoContent:CODE
HIGHawxkit/awxkit/api/pages/api.py358except exc.NoContent: # desired exception on successful (dis)associationCODE
HIGHawxkit/awxkit/api/pages/api.py403except exc.NoContent: # desired exception on successful (dis)associationCODE
HIGHawxkit/awxkit/api/pages/api.py102except IndexError:CODE
HIGHawxkit/awxkit/api/pages/api.py309except AssertionError:CODE
HIGHawxkit/awxkit/api/pages/notification_templates.py41except exc.MethodNotAllowed:CODE
HIGHawxkit/awxkit/api/pages/base.py16except (exc.NoContent, exc.NotFound, exc.Forbidden):CODE
HIGHawxkit/awxkit/api/pages/base.py115except exc.NoContent: # desired exception on successful (dis)associationCODE
HIGHawxkit/awxkit/api/pages/schedules.py28except (exc.NoContent, exc.NotFound, exc.Forbidden):CODE
HIGHawxkit/awxkit/api/pages/inventory.py104except (exc.NoContent, exc.NotFound, exc.Forbidden):CODE
HIGHawx/asgi.py30except FileNotFoundError:CODE
HIGHawx/urls.py44except ImportError:CODE
HIGHawx/wsgi.py32except FileNotFoundError:CODE
HIGHawx/settings/functions.py34except (ImportError, ValueError):CODE
HIGHawx/playbooks/library/indirect_instance_count.py94except InvalidVersion:CODE
HIGHawx/api/metadata.py110except serializers.SkipField:CODE
HIGHawx/api/metadata.py154except Exception:CODE
HIGHawx/api/validators.py57except ValidationError:CODE
HIGHawx/api/serializers.py1671except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py2781except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py2917except AttributeError:CODE
HIGHawx/api/serializers.py3759except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py4540except WorkflowJobTemplate.DoesNotExist:CODE
HIGHawx/api/serializers.py4691except (KeyError, AttributeError):CODE
HIGHawx/api/serializers.py4741except (KeyError, AttributeError):CODE
HIGHawx/api/serializers.py582except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py2074except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py2983except AttributeError:CODE
HIGHawx/api/serializers.py5868except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py6680except ObjectDoesNotExist:CODE
HIGHawx/api/serializers.py5730except json.JSONDecodeError:CODE
HIGHawx/api/pagination.py177except (KeyError, ValueError):CODE
HIGHawx/api/generics.py506except PermissionDenied:CODE
HIGHawx/api/views/instance_install_bundle.py165except ipaddress.AddressValueError:CODE
HIGHawx/api/views/mixin.py44except self.model.unified_job_node.RelatedObjectDoesNotExist:CODE
HIGHawx/api/views/__init__.py3122except socket.gaierror:CODE
HIGHawx/api/views/__init__.py3124except UnicodeError:CODE
HIGHawx/api/views/root.py424except Exception:CODE
HIGHawx/main/signals.py98except Inventory.DoesNotExist:CODE
HIGHawx/main/signals.py301except (Inventory.DoesNotExist, Project.DoesNotExist):CODE
HIGHawx/main/access.py1442except ObjectDoesNotExist:CODE
HIGHawx/main/middleware.py106except ValueError:CODE
HIGHawx/main/views.py35except Exception:CODE
HIGHawx/main/wsrelay.py80except ValueError:CODE
HIGHawx/main/wsrelay.py304except KeyError:CODE
HIGHawx/main/wsrelay.py293except asyncio.CancelledError:CODE
HIGHawx/main/tasks/callback.py151except Exception:CODE
HIGHawx/main/tasks/callback.py167except Exception:CODE
HIGHawx/main/tasks/callback.py242except json.JSONDecodeError:CODE
HIGHawx/main/tasks/system.py1033except Exception:CODE
HIGHawx/main/tasks/receptor.py564except Exception:CODE
HIGHawx/main/tests/unit/tasks/test_jobs.py698except Exception:CODE
HIGHawx/main/tests/live/tests/test_inventory_vars.py30except model.DoesNotExist:CODE
30 more matches not shown…
Decorative Section Separators127 hits · 416 pts
SeverityFileLineSnippetContext
MEDIUMawxkit/test/cli/test_authentication.py16# ============================================================================COMMENT
MEDIUMawxkit/test/cli/test_authentication.py18# ============================================================================COMMENT
MEDIUM⚡awx/settings/defaults.py587# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py589# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py595# ------------COMMENT
MEDIUM⚡awx/settings/defaults.py597# ------------COMMENT
MEDIUM⚡awx/settings/defaults.py605# -----------------COMMENT
MEDIUM⚡awx/settings/defaults.py607# -----------------COMMENT
MEDIUM⚡awx/settings/defaults.py611# ---------------------------COMMENT
MEDIUM⚡awx/settings/defaults.py613# ---------------------------COMMENT
MEDIUM⚡awx/settings/defaults.py619# --------------------------------------COMMENT
MEDIUM⚡awx/settings/defaults.py621# --------------------------------------COMMENT
MEDIUM⚡awx/settings/defaults.py627# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py629# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py635# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py637# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py643# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py645# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py651# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py653# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py660# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py662# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py668# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py670# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py676# ------------------------COMMENT
MEDIUM⚡awx/settings/defaults.py678# ------------------------COMMENT
MEDIUM⚡awx/settings/defaults.py681# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py683# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py689# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py691# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py697# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py699# ----------------COMMENT
MEDIUM⚡awx/settings/defaults.py704# ---------------------COMMENT
MEDIUM⚡awx/settings/defaults.py706# ---------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py76# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py89# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py91# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py117# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py119# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py136# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py138# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py154# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py156# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py170# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py186# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py188# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py204# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py219# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py221# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py236# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py238# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py252# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py254# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py267# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡awx/main/tests/unit/tasks/test_receptor_adoption.py269# ---------------------------------------------------------------------------COMMENT
67 more matches not shown…
Hallucination Indicators30 hits · 315 pts
SeverityFileLineSnippetContext
CRITICALawx/api/validators.py4from django.core.exceptions import ValidationErrorCODE
CRITICALawx/api/views/__init__.py23from django.core.exceptions import FieldError, ObjectDoesNotExistCODE
CRITICALawx/api/views/__init__.py2520 models.Host.groups.through.objects.filter(host__inventory_sources=inv_source).delete()CODE
CRITICALawx/api/views/__init__.py2546 models.Group.hosts.through.objects.filter(group__inventory_sources=inv_source).delete()CODE
CRITICALawx/main/validators.py10from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tasks/callback.py12from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/unit/test_validators.py1from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/unit/test_fields.py5from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/unit/utils/test_common.py22from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/unit/models/test_inventory.py3from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/unit/models/test_project.py6from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/factories/fixtures.py4from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/functional/test_credential.py5from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/functional/test_fixture_factories.py66 assert objects.users.bob in objects.teams.team1.member_role.members.all()CODE
CRITICALawx/main/tests/functional/test_projects.py11from django.core.exceptions import ValidationErrorCODE
CRITICAL⚡awx/main/tests/functional/rbac/test_rbac_job.py123 normal_job.job_template.inventory.admin_role.members.add(rando)CODE
CRITICAL⚡…/main/tests/functional/rbac/test_rbac_job_templates.py41 jt_linked.inventory.organization.execute_role.members.add(rando)CODE
CRITICALawx/main/tests/functional/models/test_workflow.py24from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/tests/functional/api/test_inventory.py6from django.core.exceptions import ValidationErrorCODE
CRITICAL⚡awx/main/tests/functional/api/test_workflow_node.py139 approval_node.workflow_job_template.organization.admin_role.members.add(alice)CODE
CRITICALawx/main/models/mixins.py13from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/jobs.py11from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/event_query.py1from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/projects.py17from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/ad_hoc_commands.py13from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/credential.py17from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/base.py6from django.core.exceptions import ValidationError, ObjectDoesNotExistCODE
CRITICALawx/main/models/inventory.py18from django.core.exceptions import ValidationErrorCODE
CRITICALawx/main/models/inventory.py1401 for instance_group in self.inventory_source.inventory.organization.instance_groups.all():CODE
CRITICALdocs/docsite/rst/rest_api/_swagger/swagger-ui.js1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")CODE
Excessive Try-Catch Wrapping252 hits · 272 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/awx/utils.py26 except Exception as e:CODE
LOWawxkit/awxkit/cli/options.py111 except Exception:CODE
LOWawxkit/awxkit/cli/options.py187 except Exception:CODE
LOWawxkit/awxkit/cli/options.py190 except Exception:CODE
LOWawxkit/awxkit/cli/client.py158 except Exception as e:CODE
LOWawxkit/awxkit/cli/__init__.py61 except Exception as e: # noqa: F841CODE
LOWawxkit/awxkit/scripts/basic_session.py76 except Exception as e:CODE
LOWawxkit/awxkit/scripts/basic_session.py79 except Exception as e:CODE
LOWawxkit/awxkit/api/mixins/has_status.py92 except Exception as e:CODE
LOWawxkit/awxkit/api/pages/workflow_jobs.py36 except Exception as e:CODE
LOWtools/scripts/firehose.py115 except Exception as e:STRING
LOWtools/scripts/compilemessages.py61 except Exception:CODE
LOWawx/api/metadata.py154 except Exception:CODE
MEDIUMawx/api/serializers.py727def run_validation(self, data=fields.empty):CODE
MEDIUMawx/api/serializers.py3908def get_prompts(self, obj):CODE
LOWawx/api/serializers.py2345 except Exception as e:CODE
LOWawx/api/serializers.py2452 except Exception as e:CODE
LOWawx/api/serializers.py4784 except Exception:CODE
LOWawx/api/serializers.py5627 except Exception as exc:CODE
LOWawx/api/serializers.py5817 except Exception as e:CODE
LOWawx/api/serializers.py6568 except Exception:CODE
LOWawx/api/serializers.py6585 except Exception:CODE
LOWawx/api/serializers.py6600 except Exception:CODE
LOWawx/api/renderers.py83 except Exception:CODE
LOWawx/api/permissions.py126 except Exception as e:CODE
LOWawx/api/generics.py265 except Exception as e:CODE
LOWawx/api/schema.py168 except Exception:CODE
MEDIUMawx/api/views/__init__.py1940def list(self, *args, **kwargs):CODE
LOW⚡awx/api/views/__init__.py1719 except Exception as exc:CODE
LOWawx/api/views/__init__.py1801 except Exception as exc:CODE
LOWawx/api/views/__init__.py1865 except Exception as exc:CODE
LOWawx/api/views/__init__.py1943 except Exception as e:CODE
LOWawx/api/views/analytics.py185 except Exception as e:CODE
LOWawx/api/views/analytics.py261 except Exception as e:CODE
MEDIUMawx/api/views/analytics.py152def _error_response_404(self, response):CODE
MEDIUMawx/api/views/analytics.py204def _send_to_analytics(self, request, method):CODE
LOWawx/api/views/webhooks.py98 except Exception:CODE
LOWawx/api/views/root.py265 except Exception as exc:CODE
LOWawx/api/views/root.py319 except Exception as exc:CODE
LOWawx/api/views/root.py412 except Exception:CODE
LOW⚡awx/api/views/root.py424 except Exception:CODE
LOW⚡awx/api/views/root.py430 except Exception:CODE
LOW⚡awx/api/views/root.py437 except Exception:CODE
LOWawx/api/views/root.py460 except Exception:CODE
MEDIUMawx/api/views/root.py455def delete(self, request):CODE
LOWawx/main/fields.py88 except Exception as e:CODE
LOWawx/main/fields.py111 except Exception as e:CODE
LOWawx/main/fields.py337 except Exception as e:CODE
MEDIUMawx/main/fields.py334def format_url(value):CODE
LOWawx/main/consumers.py48 except Exception:CODE
LOWawx/main/consumers.py57 except Exception:CODE
LOWawx/main/consumers.py89 except Exception:CODE
MEDIUMawx/main/consumers.py42def verify_secret(cls, s, nonce_tolerance=300):CODE
MEDIUMawx/main/consumers.py86def connect(self):CODE
LOWawx/main/views.py35 except Exception:CODE
LOWawx/main/wsrelay.py102 except Exception as e:CODE
LOWawx/main/wsrelay.py213 except Exception:CODE
LOWawx/main/wsrelay.py270 except Exception as e:CODE
MEDIUMawx/main/wsrelay.py171def run_producer(self, name, websocket, group):CODE
LOWawx/main/tasks/callback.py151 except Exception:CODE
192 more matches not shown…
Deep Nesting291 hits · 248 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/yaml_file.py26CODE
LOWawxkit/awxkit/awx/utils.py51CODE
LOWawxkit/awxkit/awx/utils.py73CODE
LOWawxkit/awxkit/utils/__init__.py303CODE
LOWawxkit/awxkit/utils/__init__.py53CODE
LOWawxkit/awxkit/utils/__init__.py84CODE
LOWawxkit/awxkit/cli/options.py162CODE
LOWawxkit/awxkit/cli/sphinx.py37CODE
LOWawxkit/awxkit/cli/client.py83CODE
LOWawxkit/awxkit/cli/client.py257CODE
LOWawxkit/awxkit/cli/resource.py144CODE
LOWawxkit/awxkit/cli/__init__.py19CODE
LOWawxkit/awxkit/api/registry.py118CODE
LOWawxkit/awxkit/api/client.py40CODE
LOWawxkit/awxkit/api/mixins/has_create.py52CODE
LOWawxkit/awxkit/api/mixins/has_create.py101CODE
LOWawxkit/awxkit/api/mixins/has_create.py222CODE
LOWawxkit/awxkit/api/mixins/has_create.py250CODE
LOWawxkit/awxkit/api/pages/unified_jobs.py105CODE
LOWawxkit/awxkit/api/pages/unified_jobs.py135CODE
LOWawxkit/awxkit/api/pages/credentials.py64CODE
LOWawxkit/awxkit/api/pages/credentials.py127CODE
LOWawxkit/awxkit/api/pages/credentials.py234CODE
LOWawxkit/awxkit/api/pages/page.py103CODE
LOWawxkit/awxkit/api/pages/page.py175CODE
LOWawxkit/awxkit/api/pages/api.py77CODE
LOWawxkit/awxkit/api/pages/api.py267CODE
LOWawxkit/awxkit/api/pages/api.py379CODE
LOWawxkit/awxkit/api/pages/notification_templates.py44CODE
LOWawxkit/awxkit/api/pages/projects.py50CODE
LOWawxkit/awxkit/api/pages/base.py58CODE
LOWtools/scripts/get_next_release.py36CODE
LOWtools/data_generators/rbac_dummy_data_generator.py203CODE
LOWawx/playbooks/library/indirect_instance_count.py173CODE
LOWawx/playbooks/action_plugins/project_archive.py22CODE
LOWawx/playbooks/action_plugins/insights.py71CODE
LOWawx/api/metadata.py36CODE
LOWawx/api/metadata.py194CODE
LOWawx/api/serializers.py402CODE
LOWawx/api/serializers.py467CODE
LOWawx/api/serializers.py547CODE
LOWawx/api/serializers.py609CODE
LOWawx/api/serializers.py753CODE
LOWawx/api/serializers.py947CODE
LOWawx/api/serializers.py1039CODE
LOWawx/api/serializers.py1085CODE
LOWawx/api/serializers.py1161CODE
LOWawx/api/serializers.py1801CODE
LOWawx/api/serializers.py2057CODE
LOWawx/api/serializers.py2699CODE
LOWawx/api/serializers.py2932CODE
LOWawx/api/serializers.py4386CODE
LOWawx/api/serializers.py4968CODE
LOWawx/api/serializers.py5140CODE
LOWawx/api/serializers.py5341CODE
LOWawx/api/serializers.py5423CODE
LOWawx/api/serializers.py5443CODE
LOWawx/api/serializers.py5516CODE
LOWawx/api/serializers.py5719CODE
LOWawx/api/serializers.py6198CODE
231 more matches not shown…
Self-Referential Comments115 hits · 242 pts
SeverityFileLineSnippetContext
MEDIUMawxkit/awxkit/awx/inventory.py9 # Create an inventory scriptCOMMENT
MEDIUMawxkit/awxkit/cli/sphinx.py38 # This function is called by Sphinx when making the docs.COMMENT
MEDIUMtools/scripts/l18n/post_translation.sh6# Create a directory for api (locale)COMMENT
MEDIUMtools/scripts/l18n/post_translation.sh24# Create a directory for ui (locales)COMMENT
MEDIUMawx/settings/__init__.py22# Create a the standard DYNACONF instance which will come with DAB defaultsCOMMENT
MEDIUMawx/api/serializers.py777 # Create a new model instance or take the existing one if it exists,COMMENT
MEDIUMawx/api/serializers.py5387 # Create the node objectsCOMMENT
MEDIUMawx/api/generics.py703 # Create the sub object if an ID is not provided.COMMENT
MEDIUMawx/main/tasks/callback.py180 # This method is called once for *every event* emitted by AnsibleCOMMENT
MEDIUMawx/main/tasks/facts.py31 # Create the fact_cache directory inside artifacts_dirCOMMENT
MEDIUM⚡awx/main/tasks/system.py439 """This method is intended to be called for every unified jobSTRING
MEDIUMawx/main/tasks/receptor.py481 # Create a socketpair. Where the left side will be used for writing our payloadCOMMENT
MEDIUMawx/main/tasks/jobs.py1162 # Create a directory for ControlPath sockets that is unique to each jobCOMMENT
MEDIUM⚡awx/main/tests/unit/models/test_credential.py125 # Create an existing credential type with no descriptionCOMMENT
MEDIUM⚡awx/main/tests/unit/api/test_schema.py36 # Create a mock model with verbose_name_pluralCOMMENT
MEDIUM⚡awx/main/tests/unit/api/test_schema.py40 # Create a mock serializer with Meta.modelCOMMENT
MEDIUMawx/main/tests/unit/api/test_schema.py55 # Create a mock model with verbose_name_pluralCOMMENT
MEDIUMawx/main/tests/live/pytest.ini1# This file is needed to undo the pytest settings from the project rootCOMMENT
MEDIUMawx/main/tests/live/tests/conftest.py163 cmd = ['podman', 'build', '-f', '-'] # Create an image without a tagSTRING
MEDIUMawx/main/tests/live/tests/test_inventory_vars.py167 # Create the inventory source instance.COMMENT
MEDIUMawx/main/tests/functional/test_migrations.py200 # Create a CredentialType with the old, problematic 'namespace' valueCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py327 # Create a job with credentials using fixtureCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py355 # Create a job using fixtureCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py481 # Create a workload identity credential typeCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py505 # Create a job using fixtureCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py590 # Create a workload identity credential typeCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py614 # Create a job using fixtureCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py686 # Create a job using fixtureCOMMENT
MEDIUMawx/main/tests/functional/test_jobs.py734 # Create a job using fixtureCOMMENT
MEDIUMawx/main/tests/functional/test_policy.py607 # Create a job for testingCOMMENT
MEDIUM…/main/tests/functional/rbac/test_rbac_job_templates.py179 # Creating a JT should place the creator in the admin roleCOMMENT
MEDIUMawx/main/tests/functional/tasks/test_host_indirect.py373 # Create the expected job eventsCOMMENT
MEDIUM⚡awx/main/tests/functional/tasks/test_tasks_jobs.py71 # Create a real callbackCOMMENT
MEDIUMawx/main/tests/functional/tasks/test_tasks_system.py1340 # Create a mock instance that has unifiedjob_blocked_jobsCOMMENT
MEDIUM…ts/functional/task_management/test_container_groups.py54 # Create a second job that should not be scheduled at first, blocked by the otherCOMMENT
MEDIUM…ts/functional/task_management/test_container_groups.py75 # Create a second job that should not be scheduledCOMMENT
MEDIUM⚡awx/main/tests/functional/models/test_job.py75 # Create an inventory with 4 nodesCOMMENT
MEDIUM…in/tests/functional/dab_rbac/test_consolidate_teams.py103 # Create a user and team with direct assignmentCOMMENT
MEDIUM…in/tests/functional/dab_rbac/test_consolidate_teams.py128 # Create a user assigned to team ACOMMENT
MEDIUM…in/tests/functional/dab_rbac/test_notification_rbac.py193 # Create a notification template as adminCOMMENT
MEDIUM⚡awx/main/tests/functional/api/test_job.py222 # Create a job templateCOMMENT
MEDIUM⚡awx/main/tests/functional/api/test_job.py228 # Create a job instanceCOMMENT
MEDIUM…/tests/functional/api/test_credential_input_sources.py333 # Create an input sourceCOMMENT
MEDIUM…/tests/functional/api/test_credential_input_sources.py359 # Create an input sourceCOMMENT
MEDIUMawx/main/tests/functional/api/test_credential_type.py488 # Create a credential type with empty dictCOMMENT
MEDIUMawx/main/tests/functional/api/test_credential_type.py508 # Create a credential type with invalid inputs typeCOMMENT
MEDIUMawx/main/tests/functional/analytics/test_core.py66 # Create a temporary file and yield its pathCOMMENT
MEDIUMawx/main/management/commands/create_preload_data.py27 # Create a default organization as the first superuser found.COMMENT
MEDIUM…nt/commands/register_default_execution_environments.py131 # Create the control plane execution environment that is used for project updates and system jobsSTRING
MEDIUM⚡awx/main/scheduler/kubernetes.py113 # Create an image pull secret in namespaceCOMMENT
MEDIUMawx/main/models/events.py409 # This function is called by the callback receiver *once* for *everyCOMMENT
MEDIUMawx/main/models/events.py723 # This function is called by the callback receiver *once* for *everyCOMMENT
MEDIUMawx/main/models/jobs.py802 # This function handles only the defaults for a template w/o user specificationCOMMENT
MEDIUMawx/conf/conf.py9# Define a conf.py file within your app and register each setting similarly toCOMMENT
MEDIUMawx_collection/test/awx/test_inventory.py12 # Create an insights credentialCOMMENT
MEDIUMawx_collection/test/awx/test_instance_group.py28 # Create a new instance in the DBCOMMENT
MEDIUMawx_collection/plugins/module_utils/controller_api.py333 # This method is intended to be overriddenCOMMENT
MEDIUMawx_collection/plugins/modules/instance_group.py113 # Create a module for ourselvesSTRING
MEDIUMawx_collection/plugins/modules/instance_group.py147 # Create the data that gets sent for create and updateSTRING
MEDIUMawx_collection/plugins/modules/inventory_source.py214 # Create a module for ourselvesSTRING
55 more matches not shown…
Modern Structural Boilerplate100 hits · 101 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/utils/toposort.py38__all__ = ['toposort', 'CircularDependencyError']CODE
LOWawxkit/awxkit/cli/utils.py12__all__ = ['CustomRegistryMeta', 'HelpfulArgumentParser', 'disable_color', 'color_enabled', 'colored', 'cprint', 'STATUSCODE
LOWtools/scripts/list_fields.py1__all__ = ['pretty_print_model_fields']CODE
LOWawx/__init__.py42__all__ = ['__version__']CODE
LOWawx/api/metrics.py10__all__ = ['urls']CODE
LOWawx/api/fields.py14__all__ = ['BooleanNullField', 'CharNullField', 'ChoiceNullField', 'VerbatimField']CODE
LOWawx/api/permissions.py18__all__ = [CODE
LOWawx/api/generics.py56__all__ = [CODE
LOWawx/api/urls/workflow_job_node.py28__all__ = ['urls']CODE
LOWawx/api/urls/instance_group.py24__all__ = ['urls']CODE
LOWawx/api/urls/inventory_source.py48__all__ = ['urls']CODE
LOWawx/api/urls/job_template.py59__all__ = ['urls']CODE
LOWawx/api/urls/instance.py28__all__ = ['urls']CODE
LOWawx/api/urls/user.py32__all__ = ['urls']CODE
LOWawx/api/urls/workflow_job.py28__all__ = ['urls']CODE
LOWawx/api/urls/job_host_summary.py10__all__ = ['urls']CODE
LOWawx/api/urls/system_job.py16__all__ = ['urls']CODE
LOWawx/api/urls/organization.py70__all__ = ['urls']CODE
LOWawx/api/urls/project_update.py26__all__ = ['urls']CODE
LOWawx/api/urls/host.py36__all__ = ['urls']CODE
LOWawx/api/urls/notification.py13__all__ = ['urls']CODE
LOWawx/api/urls/job.py38__all__ = ['urls']CODE
LOWawx/api/urls/ad_hoc_command_event.py12__all__ = ['urls']CODE
LOWawx/api/urls/activity_stream.py13__all__ = ['urls']CODE
LOWawx/api/urls/receptor_address.py16__all__ = ['urls']CODE
LOWawx/api/urls/workflow_job_template_node.py30__all__ = ['urls']CODE
LOWawx/api/urls/__init__.py7__all__ = ['urlpatterns', 'app_name']CODE
LOWawx/api/urls/credential_input_source.py13__all__ = ['urls']CODE
LOWawx/api/urls/role.py15__all__ = ['urls']CODE
LOWawx/api/urls/team.py30__all__ = ['urls']CODE
LOWawx/api/urls/credential_type.py16__all__ = ['urls']CODE
LOWawx/api/urls/execution_environments.py19__all__ = ['urls']CODE
LOWawx/api/urls/debug.py17__all__ = ['urls']CODE
LOWawx/api/urls/system_job_template.py40__all__ = ['urls']CODE
LOWawx/api/urls/workflow_approval.py15__all__ = ['urls']CODE
LOWawx/api/urls/workflow_approval_template.py13__all__ = ['urls']CODE
LOWawx/api/urls/label.py10__all__ = ['urls']CODE
LOWawx/api/urls/workflow_job_template.py61__all__ = ['urls']CODE
LOWawx/api/urls/group.py36__all__ = ['urls']CODE
LOWawx/api/urls/host_metric.py10__all__ = ['urls']CODE
LOWawx/api/urls/notification_template.py22__all__ = ['urls']CODE
LOWawx/api/urls/analytics.py30__all__ = ['urls']CODE
LOWawx/api/urls/schedule.py17__all__ = ['urls']CODE
LOWawx/api/urls/job_event.py13__all__ = ['urls']CODE
LOWawx/api/urls/credential.py32__all__ = ['urls']CODE
LOWawx/api/urls/inventory_update.py28__all__ = ['urls']CODE
LOWawx/api/urls/ad_hoc_command.py28__all__ = ['urls']CODE
LOWawx/api/urls/project.py54__all__ = ['urls']CODE
LOWawx/api/urls/inventory.py60__all__ = ['urls', 'constructed_inventory_urls']CODE
LOWawx/main/queue.py14__all__ = ['CallbackQueueDispatcher']CODE
LOWawx/main/signals.py63__all__ = []CODE
LOWawx/main/fields.py43__all__ = [CODE
LOWawx/main/constants.py8__all__ = [CODE
LOWawx/main/access.py80__all__ = [CODE
LOWawx/main/tasks/signals.py8__all__ = ['with_signal_handling', 'signal_callback']CODE
LOWawx/main/tasks/host_indirect.py20logger = logging.getLogger(__name__)CODE
LOWawx/main/tests/factories/__init__.py15__all__ = [CODE
LOWawx/main/tests/live/tests/conftest.py24logger = logging.getLogger(__name__)CODE
LOWawx/main/tests/live/tests/test_concurrent_fact_cache.py25logger = logging.getLogger(__name__)CODE
LOWawx/main/tests/data/sleep_task.py12logger = logging.getLogger(__name__)CODE
40 more matches not shown…
Over-Commented Block90 hits · 80 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/utils/toposort.py1#######################################################################COMMENT
LOWawxkit/awxkit/utils/toposort.py21# Added unittests.COMMENT
LOWawxkit/awxkit/cli/docs/source/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWtools/loki/local-config.yaml81query_range:COMMENT
LOWtools/scripts/firehose.py1#! /usr/bin/env awx-pythonCOMMENT
LOWawx/devonly.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/ui/__init__.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/settings/defaults.py61# Timeout when waiting for pod to enter running state. If the pod is still in pending state , it will be terminated. ValCOMMENT
LOWawx/settings/defaults.py161# reverse proxy.COMMENT
LOWawx/settings/defaults.py181# This should not be set via a file.COMMENT
LOWawx/settings/defaults.py661# -- Red Hat Insights --COMMENT
LOWawx/settings/defaults.py681# ---------------------COMMENT
LOWawx/settings/defaults.py861# https://github.com/django-polymorphic/django-polymorphic/issues/195COMMENT
LOWawx/playbooks/project_update.yml1---COMMENT
LOWawx/api/models.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/api/serializers.py5461 show_capabilities = ['edit', 'delete', 'copy']COMMENT
LOWawx/api/serializers.py5761class SchedulePreviewSerializer(BaseSerializer):COMMENT
LOWawx/api/__init__.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/api/generics.py221 """COMMENT
LOWawx/api/generics.py301 return responseCOMMENT
LOWawx/api/generics.py321 # To prevent this, we will _no longer_ send `WWW-Authenticate: Basic ...`COMMENT
LOWawx/api/generics.py541 if not self.request.user.can_access(*args):COMMENT
LOWawx/api/views/__init__.py4261 # key is uuid, value is parent uuid. Used as a quick lookupCOMMENT
LOWawx/api/views/__init__.py4301 if puuid and puuid not in level_current_uuid:COMMENT
LOWawx/main/access.py2501 # qs = qs.prefetch_related(COMMENT
LOWawx/main/__init__.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/main/middleware.py121 # if the name does *not* resolve to any actual resource,COMMENT
LOWawx/main/tasks/callback.py181 # Runner as a playbook runs. That means that changes to the code inCOMMENT
LOWawx/main/tasks/system.py141 # automatically register it. This is mostly useful for openshift-basedCOMMENT
LOWawx/main/tasks/receptor.py501COMMENT
LOWawx/main/tests/__init__.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/main/tests/unit/utils/test_filters.py221#('"facts__quoted_val"="f\"oo"', 1),COMMENT
LOW…s/functional/task_management/test_cancel_dependency.py1# Generated by Claude Opus 4.6 (claude-opus-4-6)COMMENT
LOWawx/main/management/__init__.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/main/management/commands/__init__.py1# Copyright (c) 2015 Ansible, Inc.COMMENT
LOWawx/main/management/commands/run_wsrelay.py101 connection.close() # Because of async nature, main loop will use new connection, so close thisCOMMENT
LOWawx/main/utils/encryption.py61 # !!! BEFORE USING THIS FUNCTION PLEASE READ encrypt_field !!!COMMENT
LOWawx/main/utils/encryption.py81 # symmetric key is based):COMMENT
LOWawx/main/utils/handlers.py41 # for any number of reasons, rsyslogd has gone to lunch;COMMENT
LOWawx/main/models/events.py141 # - playbook_on_not_import_for_host (not logged, not used for v2)COMMENT
LOWawx/main/models/events.py401 setattr(self, field, value)COMMENT
LOWawx/main/models/events.py721 #COMMENT
LOWawx/main/models/events.py781 ]COMMENT
LOWawx/main/models/rbac.py261 # parent of B which is a parent of C, then the ancestors table willCOMMENT
LOWawx/main/models/rbac.py281 # in what order, we simply use the termination condition of stoppingCOMMENT
LOWawx/main/models/rbac.py301 #COMMENT
LOWawx/main/models/schedules.py201 # it requires them to perform DTSTART local -> UTC datetime coercion onCOMMENT
LOWawx/main/db/profiled_pg/base.py121COMMENT
LOWawx/conf/settings.py41# Cannot store None in cache; use a special value instead to indicate None.COMMENT
LOWawx/conf/settings.py261 self.__dict__['_awx_conf_memoizedcache_lock'] = threading.Lock()COMMENT
LOWrequirements/requirements.txt1adal==1.2.7COMMENT
LOWrequirements/requirements.txt21 # via -r /awx_devel/requirements/requirements.inCOMMENT
LOWrequirements/requirements.txt41autobahn==24.4.2COMMENT
LOWrequirements/requirements.txt61 # via -r /awx_devel/requirements/requirements.inCOMMENT
LOWrequirements/requirements.txt81cachetools==6.2.0COMMENT
LOWrequirements/requirements.txt101 # via requestsCOMMENT
LOWrequirements/requirements.txt121 # via -r /awx_devel/requirements/requirements.inCOMMENT
LOWrequirements/requirements.txt141 # via -r /awx_devel/requirements/requirements_git.txtCOMMENT
LOWrequirements/requirements.txt161 # viaCOMMENT
LOWrequirements/requirements.txt181 # aiohttpCOMMENT
30 more matches not shown…
Cross-File Repetition11 hits · 55 pts
SeverityFileLineSnippetContext
HIGH…ts/data/projects/host_query/plugins/modules/example.py0--- module: example short_description: module for specific live tests version_added: "2.0.0" description: this module isSTRING
HIGH…/host_query_external_v3_0_0/plugins/modules/example.py0--- module: example short_description: module for specific live tests version_added: "2.0.0" description: this module isSTRING
HIGH…/host_query_external_v1_0_0/plugins/modules/example.py0--- module: example short_description: module for specific live tests version_added: "2.0.0" description: this module isSTRING
HIGH…/host_query_external_v1_5_0/plugins/modules/example.py0--- module: example short_description: module for specific live tests version_added: "2.0.0" description: this module isSTRING
HIGH…ts/data/projects/host_query/plugins/modules/example.py0direct_host_name: description: the name of the host, this will be collected with the feature. type: str returned: alwaysSTRING
HIGH…/host_query_external_v3_0_0/plugins/modules/example.py0direct_host_name: description: the name of the host, this will be collected with the feature. type: str returned: alwaysSTRING
HIGH…/host_query_external_v1_0_0/plugins/modules/example.py0direct_host_name: description: the name of the host, this will be collected with the feature. type: str returned: alwaysSTRING
HIGH…/host_query_external_v1_5_0/plugins/modules/example.py0direct_host_name: description: the name of the host, this will be collected with the feature. type: str returned: alwaysSTRING
HIGH…/host_query_external_v3_0_0/plugins/modules/example.py0- name: test with defaults demo.external.example: - name: test with custom host name demo.external.example: host_name: fSTRING
HIGH…/host_query_external_v1_0_0/plugins/modules/example.py0- name: test with defaults demo.external.example: - name: test with custom host name demo.external.example: host_name: fSTRING
HIGH…/host_query_external_v1_5_0/plugins/modules/example.py0- name: test with defaults demo.external.example: - name: test with custom host name demo.external.example: host_name: fSTRING
Synthetic Comment Markers13 hits · 42 pts
SeverityFileLineSnippetContext
HIGHawx/main/tests/live/tests/test_concurrent_fact_cache.py12Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/live/tests/test_concurrent_fact_cache.py70 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/live/tests/test_concurrent_fact_cache.py135 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/live/tests/test_concurrent_fact_cache.py216 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/live/tests/test_concurrent_fact_cache.py266 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/data/projects/facts/gather_slow.yml2# Generated by Claude Opus 4.6 (claude-opus-4-6).COMMENT
HIGHawx/main/tests/functional/tasks/test_fact_cache.py8Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/functional/tasks/test_fact_cache.py38 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/functional/tasks/test_fact_cache.py79 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/functional/tasks/test_fact_cache.py113 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/functional/tasks/test_fact_cache.py149 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGHawx/main/tests/functional/tasks/test_fact_cache.py184 Generated by Claude Opus 4.6 (claude-opus-4-6).STRING
HIGH…s/functional/task_management/test_cancel_dependency.py1# Generated by Claude Opus 4.6 (claude-opus-4-6)COMMENT
AI Slop Vocabulary17 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtools/sosreport/controller.py12 "awx-manage dispatcherctl status", # controller dispatch comprehensive statusCODE
LOWawx/playbooks/library/indirect_instance_count.py39# this plugin, just set ANSIBLE_LOG_PATH as an environment variableSTRING
MEDIUMawx/api/serializers.py675 # Note: This logic works in conjunction withCOMMENT
LOWawx/api/views/analytics.py232 # subscriptions credentials are not valid for basic auth, so just return 401COMMENT
MEDIUM⚡awx/main/tasks/system.py449 # a refresh now is formally robustSTRING
LOWawx/main/dispatch/worker/callback.py306 # just use them to report `summary` websocket events as anCOMMENT
MEDIUM⚡awx/main/tests/functional/models/test_job.py21 # Representation should be robust to deleted related itemsCOMMENT
MEDIUM…main/tests/functional/models/test_job_launch_config.py65 assert set(JobTemplate.get_ask_mapping().keys()) - set(r.keys()) == set() # make fixture comprehensiveCODE
MEDIUMawx/main/tests/functional/api/test_licensing.py374 # Client IP: in the test harness this is typically 127.0.0.1 or similarCOMMENT
LOWawx/main/tests/functional/api/test_generic.py29 # should just pass throughCOMMENT
LOWawx/main/models/rbac.py281 # in what order, we simply use the termination condition of stoppingCOMMENT
LOWawx/main/models/rbac.py828 # anyways so just returnCOMMENT
MEDIUMawx/main/analytics/broadcast_websocket.py119 # TODO: More robust replacementCOMMENT
LOWawx_collection/plugins/module_utils/controller_api.py484 # If we get a value error, then we didn't have an integer so we can just pass and fall down to the fCOMMENT
LOWawx_collection/plugins/modules/settings.py68 # If our value is already None we can just return directlySTRING
LOWawx_collection/plugins/modules/settings.py151 # If we were using a name we will just add a value of a string, otherwise we will return an array in valuesSTRING
LOWawx_collection/plugins/modules/credential.py305 # NOTE: We can't just add these on a modification because they are never returned from a GET so it would always causSTRING
Redundant / Tautological Comments22 hits · 30 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/cli/client.py139 # Check if Basic auth is forced via environment variableCOMMENT
LOWawxkit/awxkit/cli/client.py277 # Check if this is resource-level help (no action specified)COMMENT
LOWawxkit/awxkit/api/pages/users.py35 # Check if API base path is set to controller, then use gateway endpointCOMMENT
LOWtools/data_generators/rbac_dummy_data_generator.py702 # Check if job already has events, for idempotenceCOMMENT
LOWawx/api/serializers.py1252 # Check if a password is too longCOMMENT
LOWawx/api/permissions.py108 # Check if view supports the request method before checking permissionCOMMENT
LOWawx/main/access.py1719 # Check if JT execute access (and related prompts) is sufficientCOMMENT
LOWawx/main/access.py2171 # Check if access to prompts to prevent relaunchCOMMENT
LOWawx/main/tasks/jobs.py376 # Verify if a mount path and SELinux context has been passedCOMMENT
LOW…in/tests/functional/dab_rbac/test_consolidate_teams.py42 # Assign users to teamsCOMMENT
LOWawx/main/management/commands/candlepin_cert.py259 # Check if renewal is needed (without force, just check cert expiry locally)COMMENT
LOWawx/main/management/commands/inventory_import.py1044 # Check if the license is valid.COMMENT
LOWawx/main/scheduler/kubernetes.py68 # Check if secret already existsCOMMENT
LOW⚡awx/main/utils/candlepin/__init__.py43 # Check if we have valid dataCOMMENT
LOWawx/main/analytics/collectors.py83 # Check if full sync should be doneCOMMENT
LOW.github/workflows/spec-sync-on-merge.yml92 # Check if spec file exists in spec repoCOMMENT
LOW.github/workflows/spec-sync-on-merge.yml144 # Check if there's already an open PR from this branchCOMMENT
LOW.github/workflows/sonarcloud_pr.yml144 # Check if coverage.xml exists and has contentCOMMENT
LOWawx_collection/plugins/modules/workflow_launch.py184 # Check if Either ask_variables_on_launch, or survey_enabled is enabled for use of extra vars.STRING
LOWawx_collection/plugins/modules/job_launch.py305 # Check if Either ask_variables_on_launch, or survey_enabled is enabled for use of extra vars.STRING
LOWawx_collection/plugins/modules/license.py104 # Check if Tower is already licensedSTRING
LOWawx_collection/plugins/modules/project.py241 # Set Changed to correct value depending on if hash changed Also output refspec comparisionSTRING
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtools/scripts/pk_to_named_url.py105Main function for generating and printing named URL of a resource object given its pk. Args: username: StriSTRING
HIGHawx/api/views/__init__.py1654Validate job template ID and return the JobTemplate instance. Args: job_template_id: The job templaSTRING
HIGHawx/api/views/__init__.py1676 Handle OIDC workload identity token generation for external credential test endpoints. This method shoSTRING
HIGHawx/main/utils/candlepin/client.py104POST /consumers?owner={org} — register a new AAP consumer with basic auth. Uses the customer's Red Hat subscripSTRING
HIGHawx/main/utils/candlepin/lifecycle.py98Perform check-in and, if needed, proactive cert renewal. Called once per gather run. Returns ``(cert_pem, key_pem)`STRING
Cross-Language Confusion4 hits · 22 pts
SeverityFileLineSnippetContext
HIGHawxkit/test/test_utils.py46 ["{'null': null}", {"null": None}],CODE
HIGHawx/api/serializers.py1526 # prevent changing organization of ee. Unsetting (change to null) is allowedCOMMENT
HIGH…/serializers/test_notification_template_serializers.py61 {'started': {'message': '{{ undefined }}'}},CODE
HIGH…/serializers/test_notification_template_serializers.py62 {'started': {'message': '{{ job.undefined }}'}},CODE
AI Structural Patterns18 hits · 16 pts
SeverityFileLineSnippetContext
LOWawxkit/awxkit/ws.py52CODE
LOWawxkit/awxkit/cli/custom.py144CODE
LOWawxkit/awxkit/cli/custom.py164CODE
LOWawxkit/awxkit/api/pages/execution_environments.py26CODE
LOWtools/scripts/pk_to_named_url.py33CODE
LOWawx/api/serializers.py1697CODE
LOWawx/api/serializers.py3533CODE
LOWawx/api/serializers.py3811CODE
LOWawx/api/serializers.py4002CODE
LOWawx/api/views/analytics.py202CODE
LOWawx/main/consumers.py166CODE
LOWawx/main/tasks/policy.py24CODE
LOWawx/main/tests/factories/fixtures.py151CODE
LOWawx/main/tests/factories/fixtures.py164CODE
LOWawx/main/tests/functional/models/test_events.py187CODE
LOWawx/main/utils/plugins.py87CODE
LOWawx/conf/settings.py154CODE
LOWawx_collection/test/awx/conftest.py255CODE
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippetContext
LOWawx/main/tests/live/tests/test_inventory_vars.py158 # exist. If this behaviour changes, uncomment the following code blockCOMMENT
LOW⚡awx/main/utils/candlepin/lifecycle.py121 # Step 1: Inspect cert metadata for diagnostics and renewal decision.COMMENT
LOW⚡awx/main/utils/candlepin/lifecycle.py130 # Step 2: Check-in (best-effort, never raises).COMMENT
LOW⚡awx/main/utils/candlepin/lifecycle.py139 # Step 3: Compare local cert serial with server's serial.COMMENT
LOWawx/main/utils/candlepin/lifecycle.py179 # Step 4: Proactive renewal if within the renewal window (or already expired).COMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡awx/main/utils/candlepin/lifecycle.py121 # Step 1: Inspect cert metadata for diagnostics and renewal decision.COMMENT
LOW⚡awx/main/utils/candlepin/lifecycle.py130 # Step 2: Check-in (best-effort, never raises).COMMENT
LOW⚡awx/main/utils/candlepin/lifecycle.py139 # Step 3: Compare local cert serial with server's serial.COMMENT
LOWawx/main/utils/candlepin/lifecycle.py179 # Step 4: Proactive renewal if within the renewal window (or already expired).COMMENT
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWawx/api/metadata.py62 placeholder = getattr(field, 'placeholder', serializers.empty)CODE
LOWawx/api/metadata.py64 field_info['placeholder'] = placeholderCODE
LOWawx/api/metadata.py232 attrs_to_remove = ('required', 'read_only', 'default', 'min_length', 'max_length', 'placeholder')CODE
LOW…in/tests/functional/api/test_notification_templates.py27 'username': 'user@example.com',CODE
LOW…in/tests/functional/api/test_notification_templates.py50 'username': 'user@example.com',CODE
LOW…in/tests/functional/api/test_notification_templates.py80 'username': 'user@example.com',CODE
LOWawx/conf/registry.py127 placeholder = field_kwargs.pop('placeholder', empty)CODE
LOWdocs/docsite/rst/rest_api/_swagger/swagger-ui.js1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHawx/main/tests/functional/api/test_workflow_node.py403 # okay, now I will add the new oneCOMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMawxkit/awxkit/api/pages/projects.py54 credential = None # ignore incompatible credential from HasCreate dependency injectionCODE
MEDIUM⚡awx/main/utils/candlepin/lifecycle.py93# Lifecycle orchestrationCOMMENT
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
LOWtools/scripts/firehose.py20# Also, a billion events is a *lot* of data; make sure you'veCOMMENT
MEDIUMawx/main/db/profiled_pg/base.py135 # it's worth noting that this property is wrapped w/ @memoize becauseCOMMENT
LOWawx_collection/plugins/modules/inventory.py215 # We need to perform a check to make sure you are not trying to convert a regular inventory into a smart one.STRING
TODO Padding1 hit · 0 pts
SeverityFileLineSnippetContext
LOWawx/api/serializers.py3741 job_events=self.reverse('api:job_job_events_list', kwargs={'pk': obj.pk}), # TODO: consider adding job_CODE