Repository Analysis

vega/altair

Declarative visualization library for Python

13.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vega/altair, a Python project with 10,461 GitHub stars. SynthScan v2.0 examined 72,666 lines of code across 460 source files, recording 785 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 13.9 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

13.9
Adjusted Score
13.9
Raw Score
100%
Time Factor
2026-08-16
Last Push
10.5K
Stars
Python
Language
72.7K
Lines of Code
460
Files
785
Pattern Hits
2026-08-29
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 34MEDIUM 78LOW 673

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

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

Unused Imports301 hits · 254 pts
SeverityFileLineSnippetContext
LOWtools/generate_schema_wrapper.py3CODE
LOWtools/codemod.py2CODE
LOWtools/docs_cli.py1CODE
LOWtools/sync_website.py1CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py1CODE
LOWtools/markup.py3CODE
LOWtools/generate_api_docs.py3CODE
LOWtools/fs.py3CODE
LOWtools/versioning.py23CODE
LOWtools/vega_expr.py8CODE
LOWtools/download_docs_artifact.py1CODE
LOWtools/datasets/datapackage.py8CODE
LOWtools/datasets/models.py3CODE
LOWtools/datasets/__init__.py16CODE
LOWtools/datasets/npm.py1CODE
LOWtools/schemapi/schemapi.py1CODE
LOWtools/schemapi/schemapi.py33CODE
LOWtools/schemapi/__init__.py3CODE
LOWtools/schemapi/__init__.py3CODE
LOWtools/schemapi/__init__.py4CODE
LOWtools/schemapi/__init__.py4CODE
LOWtools/schemapi/__init__.py4CODE
LOWtools/schemapi/__init__.py4CODE
LOWtools/schemapi/__init__.py10CODE
LOWtools/schemapi/__init__.py10CODE
LOWtools/schemapi/__init__.py11CODE
LOWtools/schemapi/__init__.py11CODE
LOWtools/schemapi/__init__.py12CODE
LOWtools/schemapi/utils.py3CODE
LOWtools/schemapi/codegen.py3CODE
LOWsphinxext/schematable.py1CODE
LOWsphinxext/utils.py1CODE
LOWsphinxext/altairgallery.py1CODE
LOWsphinxext/code_ref.py3CODE
LOWtests/test_datasets.py1CODE
LOWtests/test_magics.py1CODE
LOWtests/test_jupyter_chart.py12CODE
LOWtests/test_jupyter_chart.py29CODE
LOWtests/__init__.py1CODE
LOWtests/__init__.py15CODE
LOWtests/altair_theme_test.py2CODE
LOWtests/test_examples.py20CODE
LOWtests/expr/test_expr.py1CODE
LOWtests/utils/test_mimebundle.py1CODE
LOWtests/utils/test_core.py1CODE
LOWtests/utils/test_schemapi.py2CODE
LOWtests/utils/test_data.py1CODE
LOWtests/vegalite/v6/test_geo_interface.py1CODE
LOWtests/vegalite/v6/test_theme.py1CODE
LOWtests/vegalite/v6/test_theme.py20CODE
LOWtests/vegalite/v6/test_api.py3CODE
LOWtests/vegalite/v6/schema/test_channels.py1CODE
LOWaltair/theme.py3CODE
LOWaltair/theme.py8CODE
241 more matches not shown…
Hyper-Verbose Identifiers242 hits · 231 pts
SeverityFileLineSnippetContext
LOWtools/generate_schema_wrapper.py605def load_schema_with_shorthand_properties(fp: Path, /) -> dict[str, Any]:STRING
LOWtools/generate_schema_wrapper.py665def get_field_datum_value_defs(STRING
LOWtools/generate_schema_wrapper.py716def generate_vegalite_schema_wrapper(fp: Path, /) -> ModuleDef[str]:STRING
LOWtools/generate_schema_wrapper.py823def generate_vegalite_channel_wrappers(fp: Path, /) -> ModuleDef[list[str]]:STRING
LOWtools/generate_schema_wrapper.py922def generate_vegalite_mark_mixin(fp: Path, /, markdefs: dict[str, str]) -> str:STRING
LOWtools/generate_schema_wrapper.py1033def generate_config_typed_dicts(fp: Path, /) -> Iterator[str]:STRING
LOWtools/generate_schema_wrapper.py1077def find_theme_config_targets(info: SchemaInfo, depth: int = 0, /) -> set[SchemaInfo]:STRING
LOWtools/generate_schema_wrapper.py1089def generate_vegalite_config_mixin(fp: Path, /) -> str:STRING
LOWtools/generate_schema_wrapper.py1299def generate_encoding_artifacts(STRING
LOWtools/vega_expr.py747 def is_overloaded_string_array(self) -> bool:STRING
LOWtools/download_docs_artifact.py45def latest_docbuild_run_id_for_pr(pr_number: int) -> str:CODE
LOWtools/schemapi/schemapi.py204def _get_json_schema_draft_url(schema: dict[str, Any]) -> str:CODE
LOWtools/schemapi/schemapi.py213def _prepare_references_in_schema(schema: dict[str, Any]) -> dict[str, Any]:CODE
LOWtools/schemapi/schemapi.py250def _get_referencing_registry(CODE
LOWtools/schemapi/schemapi.py290def _group_errors_by_json_path(CODE
LOWtools/schemapi/schemapi.py307def _get_leaves_of_error_tree(CODE
LOWtools/schemapi/schemapi.py328def _subset_to_most_specific_json_paths(CODE
LOWtools/schemapi/schemapi.py348def _contained_at_start_of_one_of_other_values(x: str, values: Sequence[str]) -> bool:CODE
LOWtools/schemapi/schemapi.py397def _group_errors_by_validator(errors: ValidationErrorList) -> GroupedValidationErrors:CODE
LOWtools/schemapi/schemapi.py436def _deduplicate_additional_properties_errors(CODE
LOWtools/schemapi/schemapi.py664 def indent_second_line_onwards(message: str, indent: int = 4) -> str:CODE
LOWtools/schemapi/schemapi.py688 def _get_message_for_errors_group(CODE
LOWtools/schemapi/schemapi.py704 def _get_additional_properties_error_message(CODE
LOWtools/schemapi/schemapi.py725 def _get_altair_class_for_error(CODE
LOWtools/schemapi/schemapi.py825 def _get_default_error_message(CODE
LOWtools/schemapi/schemapi.py1406def _replace_parsed_shorthand(CODE
LOWsphinxext/altairgallery.py471def _heuristic_links_for_example(CODE
LOWsphinxext/altairgallery.py503def _parse_example_from_target(target: str, /) -> str | None:CODE
LOWsphinxext/altairgallery.py510def _collect_gallery_backrefs(app: Sphinx, doctree: nodes.document) -> None:CODE
LOWsphinxext/altairgallery.py618def _add_gallery_backrefs_section(CODE
LOWtests/test_vega_expr.py4def test_split_signature_tokens_handles_embedded_open_bracket() -> None:CODE
LOWtests/test_datasets.py128def is_geopandas_backed_pandas(loader: Loader[Any, Any], /) -> bool:CODE
LOWtests/test_datasets.py619def test_no_remote_connection(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:CODE
LOWtests/test_datasets.py332def test_reader_missing_dependencies() -> None:CODE
LOWtests/test_datasets.py357def test_reader_missing_implementation() -> None:CODE
LOWtests/test_datasets.py441def test_reader_cache_exhaustive(CODE
LOWtests/test_datasets.py498def test_reader_cache_disable(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:CODE
LOWtests/test_datasets.py670def test_polars_date_read_json_roundtrip(CODE
LOWtests/test_datasets.py783 def test_nonexistent_dataset_attribute(self):CODE
LOWtests/test_transformed_data.py84def test_primitive_chart_examples(filename, rows, cols, to_reconstruct):CODE
LOWtests/test_transformed_data.py142def test_compound_chart_examples(filename, all_rows, all_cols, to_reconstruct):CODE
LOWtests/test_transformed_data.py169def test_transformed_data_exclude(to_reconstruct):CODE
LOWtests/test_magics.py58def test_vegalite_magic_data_included(ipshell, vl_spec) -> None:CODE
LOWtests/test_magics.py65def test_vegalite_magic_json_flag(ipshell, vl_spec) -> None:CODE
LOWtests/test_magics.py72def test_vegalite_magic_pandas_data(ipshell, vl_spec) -> None:CODE
LOWtests/test_jupyter_chart.py51def test_jupyter_chart_without_anywidget() -> None:CODE
LOWtests/test_jupyter_chart.py61def test_chart_with_no_interactivity(transformer):CODE
LOWtests/test_jupyter_chart.py87def test_interval_selection_example(transformer):CODE
LOWtests/test_jupyter_chart.py155def test_index_selection_example(transformer):CODE
LOWtests/test_toplevel.py5def test_completeness_of__all__():CODE
LOWtests/test_examples.py37def test_render_examples_to_chart(source: Any, filename: str) -> None:CODE
LOWtests/test_examples.py54def test_from_and_to_json_roundtrip(source: Any, filename: str) -> None:CODE
LOWtests/test_examples.py85def test_render_examples_to_png(source: Any, filename: str) -> None:CODE
LOWtests/examples_methods_syntax/deviation_ellipses.py53def grouped_confidence_regions(df, col_x, col_y, col_group):CODE
LOWtests/examples_methods_syntax/__init__.py9def iter_examples_methods_syntax():CODE
LOWtests/expr/test_expr.py126def test_expr_consts_immutable(constname: str):CODE
LOWtests/expr/test_expr.py166def test_expression_function_expr():CODE
LOWtests/expr/test_expr.py173def test_expression_function_string():CODE
LOWtests/expr/test_expr.py180def test_expression_function_nostring():CODE
LOWtests/expr/test_expr.py220def test_expr_datetime_unsupported_timezone(tzinfo: dt.timezone) -> None:CODE
182 more matches not shown…
Decorative Section Separators45 hits · 142 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_datasets.py135# =============================================================================COMMENT
MEDIUMtests/test_datasets.py137# =============================================================================COMMENT
MEDIUMtests/test_datasets.py610# =============================================================================COMMENT
MEDIUMtests/test_datasets.py612# =============================================================================COMMENT
MEDIUMtests/test_datasets.py36# =============================================================================COMMENT
MEDIUMtests/test_datasets.py38# =============================================================================COMMENT
MEDIUMtests/test_datasets.py95# =============================================================================COMMENT
MEDIUMtests/test_datasets.py97# =============================================================================COMMENT
MEDIUMtests/test_datasets.py246# =============================================================================COMMENT
MEDIUMtests/test_datasets.py248# =============================================================================COMMENT
MEDIUMtests/test_datasets.py291# =============================================================================COMMENT
MEDIUMtests/test_datasets.py293# =============================================================================COMMENT
MEDIUMtests/test_datasets.py384# =============================================================================COMMENT
MEDIUMtests/test_datasets.py386# =============================================================================COMMENT
MEDIUMtests/test_datasets.py523# =============================================================================COMMENT
MEDIUMtests/test_datasets.py525# =============================================================================COMMENT
MEDIUMtests/test_datasets.py580# =============================================================================COMMENT
MEDIUMtests/test_datasets.py582# =============================================================================COMMENT
MEDIUMtests/test_datasets.py654# =============================================================================COMMENT
MEDIUMtests/test_datasets.py656# =============================================================================COMMENT
MEDIUMtests/test_datasets.py739# =============================================================================COMMENT
MEDIUMtests/test_datasets.py741# =============================================================================COMMENT
MEDIUMaltair/utils/compiler.py6# ==============================================================================COMMENT
MEDIUMaltair/utils/compiler.py8# ==============================================================================COMMENT
MEDIUMaltair/utils/display.py18# ==============================================================================COMMENT
MEDIUMaltair/utils/display.py20# ==============================================================================COMMENT
MEDIUMaltair/utils/display.py119# ==============================================================================COMMENT
MEDIUMaltair/utils/display.py121# ==============================================================================COMMENT
MEDIUMaltair/utils/data.py76# ==============================================================================COMMENT
MEDIUMaltair/utils/data.py86# ==============================================================================COMMENT
MEDIUMaltair/utils/data.py106# ==============================================================================COMMENT
MEDIUMaltair/utils/data.py347# ==============================================================================COMMENT
MEDIUMaltair/utils/data.py349# ==============================================================================COMMENT
MEDIUMaltair/vegalite/v6/display.py26# ==============================================================================COMMENT
MEDIUMaltair/vegalite/v6/display.py28# ==============================================================================COMMENT
MEDIUMaltair/vegalite/v6/api.py352# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py356# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py363# -------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py204# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py300# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py569# -------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py1388# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py2001# --------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/data.py15# ==============================================================================COMMENT
MEDIUMaltair/vegalite/v6/data.py17# ==============================================================================COMMENT
Cross-Language Confusion23 hits · 104 pts
SeverityFileLineSnippetContext
HIGHtools/schemapi/schemapi.py174 # (Gradient|string|null)>' would be a valid $ref in a Vega-Lite schema butCOMMENT
HIGHtests/examples_methods_syntax/wheat_wages.py18 offset="((!datum.commonwealth && datum.index % 2) ? -1: 1) * 2 + 95",CODE
HIGHtests/examples_methods_syntax/wheat_wages.py19 off2="((!datum.commonwealth && datum.index % 2) ? -1: 1) + 95",CODE
HIGHtests/expr/test_expr.py135 assert repr(datum.xxx == None) == "(datum.xxx === null)" # noqa: E711CODE
HIGHtests/utils/test_utils.py87 assert df.equals(df2)CODE
HIGHtests/utils/test_data.py118 assert output.equals(data)CODE
HIGHtests/utils/test_data.py163 assert output.equals(data)CODE
HIGH…s_arguments_syntax/interactive_reorder_stacked_bars.py23 site_order=f"if({selection.name}.site && indexof({selection.name}.site, datum.site) !== -1, 0, 1)"CODE
HIGHtests/examples_arguments_syntax/wheat_wages.py18 offset="((!datum.commonwealth && datum.index % 2) ? -1: 1) * 2 + 95",CODE
HIGHtests/examples_arguments_syntax/wheat_wages.py19 off2="((!datum.commonwealth && datum.index % 2) ? -1: 1) + 95",CODE
HIGHaltair/expr/__init__.py2028 If there is no container element, returns ``[undefined, undefined]``.STRING
HIGHaltair/expr/__init__.py2044 """Returns the current window size (``[window.innerWidth, window.innerHeight]``) or ``[undefined, undefined]`` iSTRING
HIGHaltair/expr/funcs.py157 "containerSize": r"Returns the current CSS box size (`[el.clientWidth, el.clientHeight]`) of the parent DOM element CODE
HIGHaltair/expr/funcs.py159 "windowSize": r"Returns the current window size (`[window.innerWidth, window.innerHeight]`) or `[undefined, undefineCODE
HIGHaltair/utils/schemapi.py176 # (Gradient|string|null)>' would be a valid $ref in a Vega-Lite schema butCOMMENT
HIGHaltair/utils/html.py286 if (rows && rows.length && looksLikeFips(rows, 'id')) {STRING
HIGHaltair/utils/core.py457 # Also convert NaN/inf values to null, as they are not JSON serializableCOMMENT
HIGHaltair/utils/_dfi_types.py79 - Data types not included: complex, Arrow-style null, binary, decimal,STRING
HIGHaltair/vegalite/v6/api.py3715 following the current data object. The default value is ``[null, 0]``, indicatingSTRING
HIGHaltair/vegalite/v6/api.py3718 and five objects following the current object. Finally, ``[null, null]`` indicatesSTRING
HIGHaltair/vegalite/v6/api.py3724 **Default value:** : ``[null, 0]`` (includes the current object and all precedingSTRING
HIGHaltair/vegalite/v6/api.py3003 **Default value:** : ``[null, null]`` indicating that the window includes allSTRING
HIGHaltair/vegalite/v6/schema/_config.py1705 Sets the minimum slider increment. If undefined, the step size will be automaticallySTRING
Self-Referential Comments30 hits · 94 pts
SeverityFileLineSnippetContext
MEDIUMtools/schemapi/schemapi.py214 # Create a copy so that $ref is not modified in the original schema in caseCOMMENT
MEDIUMtools/schemapi/schemapi.py1472 # Create a mapping of a schema hash to a list of matching classesCOMMENT
MEDIUM…/examples_methods_syntax/multiline_tooltip_standard.py21# Create a selection that chooses the nearest point & selects based on x-valueCOMMENT
MEDIUMtests/examples_methods_syntax/select_detail.py30# Create a 50-element time-series for each objectCOMMENT
MEDIUMtests/examples_methods_syntax/poly_fit_regression.py19# Define the degree of the polynomial fitsCOMMENT
MEDIUMtests/examples_methods_syntax/multiline_tooltip.py25# Create a selection that chooses the nearest point & selects based on x-valueCOMMENT
MEDIUM…xamples_methods_syntax/line_with_last_value_labeled.py13# Create a common chart objectCOMMENT
MEDIUM…xamples_methods_syntax/line_with_last_value_labeled.py33# Create a text labelCOMMENT
MEDIUM…xamples_methods_syntax/line_with_last_value_labeled.py36# Create a circle annotationCOMMENT
MEDIUMtests/examples_methods_syntax/polar_bar_chart.py26# Create the circular axis lines for the number of observationsCOMMENT
MEDIUMtests/examples_methods_syntax/polar_bar_chart.py36# Create the straight axis lines for the time of the dayCOMMENT
MEDIUM…ples_methods_syntax/interactive_layered_crossfilter.py19# Define the base chart, with the common parts of theCOMMENT
MEDIUMtests/vegalite/v6/test_params.py213 # Define the base chart, with the common parts of theCOMMENT
MEDIUMtests/vegalite/v6/test_params.py265 # Create a chart and add both parameters - should raise an errorCOMMENT
MEDIUM…xamples_arguments_syntax/multiline_tooltip_standard.py21# Create a selection that chooses the nearest point & selects based on x-valueCOMMENT
MEDIUMtests/examples_arguments_syntax/select_detail.py30# Create a 50-element time-series for each objectCOMMENT
MEDIUMtests/examples_arguments_syntax/poly_fit_regression.py19# Define the degree of the polynomial fitsCOMMENT
MEDIUMtests/examples_arguments_syntax/multiline_tooltip.py25# Create a selection that chooses the nearest point & selects based on x-valueCOMMENT
MEDIUM…mples_arguments_syntax/line_with_last_value_labeled.py13# Create a common chart objectCOMMENT
MEDIUM…mples_arguments_syntax/line_with_last_value_labeled.py31# Create a text labelCOMMENT
MEDIUM…mples_arguments_syntax/line_with_last_value_labeled.py34# Create a circle annotationCOMMENT
MEDIUMtests/examples_arguments_syntax/polar_bar_chart.py27# Create the circular axis lines for the number of observationsCOMMENT
MEDIUMtests/examples_arguments_syntax/polar_bar_chart.py37# Create the straight axis lines for the time of the dayCOMMENT
MEDIUM…es_arguments_syntax/interactive_layered_crossfilter.py19# Define the base chart, with the common parts of theCOMMENT
MEDIUMaltair/utils/schemapi.py216 # Create a copy so that $ref is not modified in the original schema in caseCOMMENT
MEDIUMaltair/utils/schemapi.py1474 # Create a mapping of a schema hash to a list of matching classesCOMMENT
MEDIUMaltair/utils/_transformed_data.py160# This function is only used internally and so we accept this inconsistency for now.COMMENT
MEDIUMaltair/vegalite/v6/api.py381 # Create a hash data structure with parameter informationCOMMENT
MEDIUMaltair/vegalite/v6/api.py390 # Create a copy of param_dict without the name field for hash computationCOMMENT
MEDIUMdoc/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
Cross-File Repetition11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHtools/schemapi/schemapi.py0construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to coSTRING
HIGHaltair/utils/schemapi.py0construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to coSTRING
HIGHaltair/vegalite/v6/api.py0construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to coSTRING
HIGH…xamples_methods_syntax/beckers_barley_wrapped_facet.py0becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richardSTRING
HIGHtests/examples_methods_syntax/beckers_barley_facet.py0becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richardSTRING
HIGH…mples_arguments_syntax/beckers_barley_wrapped_facet.py0becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richardSTRING
HIGHtests/examples_arguments_syntax/beckers_barley_facet.py0becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richardSTRING
HIGH…xamples_methods_syntax/normalized_stacked_bar_chart.py0stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields overSTRING
HIGH…mples_arguments_syntax/normalized_stacked_bar_chart.py0stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields overSTRING
HIGH…mples_arguments_syntax/horizontal_stacked_bar_chart.py0stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields overSTRING
HIGHtests/examples_arguments_syntax/stacked_bar_chart.py0stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields overSTRING
Deep Nesting58 hits · 49 pts
SeverityFileLineSnippetContext
LOWtools/generate_schema_wrapper.py605CODE
LOWtools/generate_schema_wrapper.py649CODE
LOWtools/generate_schema_wrapper.py823CODE
LOWtools/vega_expr.py572CODE
LOWtools/vega_expr.py608CODE
LOWtools/vega_expr.py850CODE
LOWtools/update_init_file.py185CODE
LOWtools/update_init_file.py209CODE
LOWtools/schemapi/schemapi.py213CODE
LOWtools/schemapi/schemapi.py471CODE
LOWtools/schemapi/schemapi.py521CODE
LOWtools/schemapi/schemapi.py219CODE
LOWtools/schemapi/schemapi.py1480CODE
LOWtools/schemapi/utils.py1305CODE
LOWtools/schemapi/utils.py441CODE
LOWtools/schemapi/utils.py578CODE
LOWtools/schemapi/codegen.py95CODE
LOWtools/schemapi/codegen.py381CODE
LOWsphinxext/schematable.py20CODE
LOWsphinxext/altairgallery.py207CODE
LOWtests/__init__.py216CODE
LOWtests/vegalite/v6/test_api.py60CODE
LOWtests/vegalite/v6/test_api.py836CODE
LOWaltair/datasets/_cache.py266CODE
LOWaltair/datasets/_reader.py462CODE
LOWaltair/datasets/_exceptions.py30CODE
LOWaltair/expr/core.py37CODE
LOWaltair/utils/save.py78CODE
LOWaltair/utils/schemapi.py215CODE
LOWaltair/utils/schemapi.py473CODE
LOWaltair/utils/schemapi.py523CODE
LOWaltair/utils/schemapi.py221CODE
LOWaltair/utils/schemapi.py1482CODE
LOWaltair/utils/core.py228CODE
LOWaltair/utils/core.py337CODE
LOWaltair/utils/core.py469CODE
LOWaltair/utils/core.py898CODE
LOWaltair/utils/_transformed_data.py182CODE
LOWaltair/utils/_transformed_data.py247CODE
LOWaltair/utils/_transformed_data.py429CODE
LOWaltair/utils/_transformed_data.py527CODE
LOWaltair/utils/mimebundle.py65CODE
LOWaltair/utils/mimebundle.py171CODE
LOWaltair/utils/data.py180CODE
LOWaltair/utils/data.py317CODE
LOWaltair/utils/data.py366CODE
LOWaltair/utils/data.py388CODE
LOWaltair/utils/_show.py11CODE
LOWaltair/vegalite/v6/api.py628CODE
LOWaltair/vegalite/v6/api.py4299CODE
LOWaltair/vegalite/v6/api.py5250CODE
LOWaltair/vegalite/v6/api.py5391CODE
LOWaltair/vegalite/v6/api.py5427CODE
LOWaltair/vegalite/v6/api.py1042CODE
LOWaltair/jupyter/jupyter_chart.py24CODE
LOWaltair/jupyter/jupyter_chart.py52CODE
LOWaltair/jupyter/jupyter_chart.py221CODE
LOWaltair/jupyter/jupyter_chart.py353CODE
Modern Structural Boilerplate34 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/generate_schema_wrapper.py587def update_vega_themes(fp: Path, /, indent: str | int | None = 2) -> None:STRING
LOWtools/codemod.py26__all__ = ["extract_func_def", "extract_func_def_embed", "ruff", "ruff_inline_docs"]CODE
LOWtools/__init__.py11__all__ = [CODE
LOWtools/fs.py15__all__ = [CODE
LOWtools/versioning.py48__all__ = ["VERSIONS"]CODE
LOWtools/versioning.py195 def update_all(self) -> None:CODE
LOWtools/versioning.py200 def update_vega_embed(self) -> None:CODE
LOWtools/vega_expr.py37__all__ = ["parse_expressions", "write_expr_module"]CODE
LOWtools/update_init_file.py49def update__all__variable() -> None:CODE
LOWtools/update_init_file.py230def update_dynamic__all__(source: str | Path, /) -> None:CODE
LOWtools/datasets/datapackage.py28__all__ = ["DataPackage"]CODE
LOWtools/datasets/__init__.py41__all__ = ["app"]CODE
LOWtools/datasets/npm.py22__all__ = ["Npm"]CODE
LOWtools/schemapi/__init__.py14__all__ = [CODE
LOWtools/schemapi/utils.py130 def _update_literals(self, name: str, tp: str, /) -> None:CODE
LOWtools/schemapi/utils.py179 def update_aliases(self, *name_statement: tuple[str, str]) -> None:CODE
LOWaltair/theme.py89__all__ = [CODE
LOWaltair/_magics.py15__all__ = ["vegalite"]CODE
LOWaltair/__init__.py8__all__ = [CODE
LOWaltair/datasets/_cache.py51__all__ = ["CsvCache", "DatasetCache", "SchemaCache", "csv_cache"]CODE
LOWaltair/datasets/_data.py291 def set_default_engine(self, engine: _Backend) -> None:CODE
LOWaltair/datasets/_typing.py15__all__ = ["Dataset", "Extension", "Metadata"]CODE
LOWaltair/datasets/_loader.py21__all__ = ["Loader", "load"]CODE
LOWaltair/datasets/__init__.py89__all__ = ["Loader", "data", "load", "url"]CODE
LOWaltair/datasets/_readimpl.py51__all__ = ["is_available", "pa_any", "pd_only", "pd_pyarrow", "pl_only", "read", "scan"]CODE
LOWaltair/datasets/_constraints.py23__all__ = [CODE
LOWaltair/utils/plugin_registry.py193 def _set_state(self, state: dict[str, Any]) -> None:CODE
LOWaltair/utils/deprecation.py17__all__ = [CODE
LOWaltair/vegalite/v6/__init__.py28__all__ = [CODE
LOWaltair/vegalite/v6/api.py149__all__ = [CODE
LOWaltair/vegalite/v6/schema/_typing.py37__all__ = [CODE
LOWaltair/vegalite/v6/schema/__init__.py13__all__ = [CODE
LOWaltair/vegalite/v6/schema/_config.py24__all__ = [CODE
LOWaltair/typing/__init__.py5__all__ = [CODE
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippetContext
LOWaltair/utils/schemapi.py61# schema instead of being hardcoded here as a default value.COMMENT
LOWaltair/utils/_transformed_data.py141 # Return DataFrame (or None if it was excluded) if input was a simple ChartCOMMENT
LOWaltair/vegalite/v6/api.py2081COMMENT
LOWdoc/conf.py1# !/usr/bin/env python3COMMENT
LOWdoc/conf.py81COMMENT
LOWdoc/conf.py121COMMENT
LOWdoc/conf.py241COMMENT
LOWdoc/conf.py261}COMMENT
LOWdoc/conf.py281COMMENT
LOWdoc/conf.py301# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'COMMENT
LOWdoc/conf.py321 # The paper size ('letterpaper' or 'a4paper').COMMENT
LOWdoc/conf.py341 ),COMMENT
LOWdoc/conf.py361# If false, no module index is generated.COMMENT
LOWdoc/conf.py401# If true, do not generate a @detailmenu in the "Top" node's menu.COMMENT
AI Structural Patterns15 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_data.py38CODE
LOWtests/utils/test_data.py43CODE
LOWaltair/utils/save.py171CODE
LOWaltair/utils/html.py330CODE
LOWaltair/utils/display.py49CODE
LOWaltair/vegalite/v6/api.py1619CODE
LOWaltair/vegalite/v6/api.py1732CODE
LOWaltair/vegalite/v6/api.py2324CODE
LOWaltair/vegalite/v6/api.py2529CODE
LOWaltair/vegalite/v6/api.py2897CODE
LOWaltair/vegalite/v6/api.py4335CODE
LOWaltair/vegalite/v6/schema/mixins.py490CODE
LOWaltair/vegalite/v6/schema/mixins.py780CODE
LOWaltair/vegalite/v6/schema/mixins.py860CODE
LOWaltair/vegalite/v6/schema/mixins.py954CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtools/schemapi/schemapi.py785 # Transpose the param name columns into rows to facilitate loopingCOMMENT
MEDIUMaltair/utils/schemapi.py787 # Transpose the param name columns into rows to facilitate loopingCOMMENT
MEDIUMaltair/vegalite/v6/api.py4959 # Use to_dict() for robust equality comparison of SchemaBase objects.COMMENT
Excessive Try-Catch Wrapping6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test_examples.py44 except Exception as err:CODE
LOWtests/test_examples.py73 except Exception as err:CODE
LOWaltair/datasets/_data.py268 except Exception:CODE
LOWaltair/datasets/_reader.py214 except Exception as e:CODE
LOWaltair/datasets/_reader.py221 except Exception as e:CODE
LOWaltair/vegalite/v6/api.py3804 except Exception:CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/schemapi/schemapi.py739 # Check if str as e.g. first item can be a 0COMMENT
LOWaltair/utils/schemapi.py741 # Check if str as e.g. first item can be a 0COMMENT
LOWaltair/vegalite/v6/api.py4084 # Check if we have a cached hash from before data was hoistedCOMMENT