Repository Analysis

vega/altair

Declarative visualization library for Python

14.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of vega/altair, a Python project with 10,430 GitHub stars. SynthScan v2.0 examined 67,713 lines of code across 457 source files, recording 780 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 14.8 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).

14.8
Adjusted Score
14.8
Raw Score
100%
Time Factor
2026-07-13
Last Push
10.4K
Stars
Python
Language
67.7K
Lines of Code
457
Files
780
Pattern Hits
2026-07-14
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

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

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

Severity Breakdown

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

CRITICAL 0HIGH 34MEDIUM 78LOW 668

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 780 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 Imports303 hits · 256 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.py26CODE
LOWtests/vegalite/v6/test_theme.py28CODE
LOWtests/vegalite/v6/test_api.py3CODE
LOWtests/vegalite/v6/schema/test_channels.py1CODE
LOWaltair/theme.py3CODE
243 more matches not shown…
Hyper-Verbose Identifiers234 hits · 222 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.py924def generate_vegalite_mark_mixin(fp: Path, /, markdefs: dict[str, str]) -> str:STRING
LOWtools/generate_schema_wrapper.py1035def generate_config_typed_dicts(fp: Path, /) -> Iterator[str]:STRING
LOWtools/generate_schema_wrapper.py1079def find_theme_config_targets(info: SchemaInfo, depth: int = 0, /) -> set[SchemaInfo]:STRING
LOWtools/generate_schema_wrapper.py1091def generate_vegalite_config_mixin(fp: Path, /) -> str:STRING
LOWtools/generate_schema_wrapper.py1302def generate_encoding_artifacts(STRING
LOWtools/vega_expr.py752 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.py207def _get_json_schema_draft_url(schema: dict[str, Any]) -> str:CODE
LOWtools/schemapi/schemapi.py216def _prepare_references_in_schema(schema: dict[str, Any]) -> dict[str, Any]:CODE
LOWtools/schemapi/schemapi.py253def _get_referencing_registry(CODE
LOWtools/schemapi/schemapi.py293def _group_errors_by_json_path(CODE
LOWtools/schemapi/schemapi.py310def _get_leaves_of_error_tree(CODE
LOWtools/schemapi/schemapi.py331def _subset_to_most_specific_json_paths(CODE
LOWtools/schemapi/schemapi.py351def _contained_at_start_of_one_of_other_values(x: str, values: Sequence[str]) -> bool:CODE
LOWtools/schemapi/schemapi.py400def _group_errors_by_validator(errors: ValidationErrorList) -> GroupedValidationErrors:CODE
LOWtools/schemapi/schemapi.py439def _deduplicate_additional_properties_errors(CODE
LOWtools/schemapi/schemapi.py667 def indent_second_line_onwards(message: str, indent: int = 4) -> str:CODE
LOWtools/schemapi/schemapi.py691 def _get_message_for_errors_group(CODE
LOWtools/schemapi/schemapi.py707 def _get_additional_properties_error_message(CODE
LOWtools/schemapi/schemapi.py728 def _get_altair_class_for_error(CODE
LOWtools/schemapi/schemapi.py828 def _get_default_error_message(CODE
LOWtools/schemapi/schemapi.py1409def _replace_parsed_shorthand(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_chart_with_no_interactivity(transformer):CODE
LOWtests/test_jupyter_chart.py77def test_interval_selection_example(transformer):CODE
LOWtests/test_jupyter_chart.py145def 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.py127def test_expr_consts_immutable(constname: str):CODE
LOWtests/expr/test_expr.py170def test_expression_function_expr():CODE
LOWtests/expr/test_expr.py177def test_expression_function_string():CODE
LOWtests/expr/test_expr.py184def test_expression_function_nostring():CODE
LOWtests/expr/test_expr.py224def test_expr_datetime_unsupported_timezone(tzinfo: dt.timezone) -> None:CODE
LOWtests/utils/test_deprecation.py25def test_deprecation_decorator():CODE
LOWtests/utils/test_mimebundle.py167def test_vegalite_to_vega_mimebundle(vegalite_spec, vega_spec):CODE
LOWtests/utils/test_mimebundle.py181def test_spec_to_vegalite_mimebundle(vegalite_spec):CODE
LOWtests/utils/test_mimebundle.py191def test_spec_to_vega_mimebundle(vega_spec):CODE
LOWtests/utils/test_mimebundle.py202def test_spec_to_json_mimebundle(vegalite_spec):CODE
174 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.py358# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py362# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py369# -------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py210# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py306# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py575# -------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py1394# ------------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/api.py2005# --------------------------------------------------------------------COMMENT
MEDIUMaltair/vegalite/v6/data.py15# ==============================================================================COMMENT
MEDIUMaltair/vegalite/v6/data.py17# ==============================================================================COMMENT
Cross-Language Confusion23 hits · 104 pts
SeverityFileLineSnippetContext
HIGHtools/schemapi/schemapi.py177 # (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.py139 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.py179 # (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.py3719 following the current data object. The default value is ``[null, 0]``, indicatingSTRING
HIGHaltair/vegalite/v6/api.py3722 and five objects following the current object. Finally, ``[null, null]`` indicatesSTRING
HIGHaltair/vegalite/v6/api.py3728 **Default value:** : ``[null, 0]`` (includes the current object and all precedingSTRING
HIGHaltair/vegalite/v6/api.py3007 **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.py217 # Create a copy so that $ref is not modified in the original schema in caseCOMMENT
MEDIUMtools/schemapi/schemapi.py1475 # 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.py219 # Create a copy so that $ref is not modified in the original schema in caseCOMMENT
MEDIUMaltair/utils/schemapi.py1477 # 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.py387 # Create a hash data structure with parameter informationCOMMENT
MEDIUMaltair/vegalite/v6/api.py396 # 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.py577CODE
LOWtools/vega_expr.py613CODE
LOWtools/vega_expr.py855CODE
LOWtools/update_init_file.py185CODE
LOWtools/update_init_file.py209CODE
LOWtools/schemapi/schemapi.py216CODE
LOWtools/schemapi/schemapi.py474CODE
LOWtools/schemapi/schemapi.py524CODE
LOWtools/schemapi/schemapi.py222CODE
LOWtools/schemapi/schemapi.py1483CODE
LOWtools/schemapi/utils.py1310CODE
LOWtools/schemapi/utils.py446CODE
LOWtools/schemapi/utils.py583CODE
LOWtools/schemapi/codegen.py95CODE
LOWtools/schemapi/codegen.py381CODE
LOWsphinxext/schematable.py20CODE
LOWsphinxext/altairgallery.py198CODE
LOWtests/__init__.py216CODE
LOWtests/vegalite/v6/test_api.py60CODE
LOWtests/vegalite/v6/test_api.py836CODE
LOWaltair/datasets/_cache.py269CODE
LOWaltair/datasets/_reader.py467CODE
LOWaltair/datasets/_exceptions.py30CODE
LOWaltair/expr/core.py37CODE
LOWaltair/utils/save.py78CODE
LOWaltair/utils/schemapi.py218CODE
LOWaltair/utils/schemapi.py476CODE
LOWaltair/utils/schemapi.py526CODE
LOWaltair/utils/schemapi.py224CODE
LOWaltair/utils/schemapi.py1485CODE
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.py634CODE
LOWaltair/vegalite/v6/api.py4303CODE
LOWaltair/vegalite/v6/api.py5254CODE
LOWaltair/vegalite/v6/api.py5395CODE
LOWaltair/vegalite/v6/api.py5431CODE
LOWaltair/vegalite/v6/api.py1048CODE
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.py31__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.py58__all__ = ["VERSIONS"]CODE
LOWtools/versioning.py205 def update_all(self) -> None:CODE
LOWtools/versioning.py210 def update_vega_embed(self) -> None:CODE
LOWtools/vega_expr.py42__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.py28__all__ = ["Npm"]CODE
LOWtools/schemapi/__init__.py14__all__ = [CODE
LOWtools/schemapi/utils.py135 def _update_literals(self, name: str, tp: str, /) -> None:CODE
LOWtools/schemapi/utils.py184 def update_aliases(self, *name_statement: tuple[str, str]) -> None:CODE
LOWaltair/theme.py94__all__ = [CODE
LOWaltair/_magics.py15__all__ = ["vegalite"]CODE
LOWaltair/__init__.py8__all__ = [CODE
LOWaltair/datasets/_cache.py54__all__ = ["CsvCache", "DatasetCache", "SchemaCache", "csv_cache"]CODE
LOWaltair/datasets/_data.py291 def set_default_engine(self, engine: _Backend) -> None:CODE
LOWaltair/datasets/_typing.py20__all__ = ["Dataset", "Extension", "Metadata"]CODE
LOWaltair/datasets/_loader.py28__all__ = ["Loader", "load"]CODE
LOWaltair/datasets/__init__.py95__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.py20__all__ = [CODE
LOWaltair/vegalite/v6/__init__.py28__all__ = [CODE
LOWaltair/vegalite/v6/api.py155__all__ = [CODE
LOWaltair/vegalite/v6/schema/_typing.py33__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 Block15 hits · 14 pts
SeverityFileLineSnippetContext
LOWtools/schemapi/schemapi.py61# Ideally, jsonschema specification would be parsed from the current Vega-LiteCOMMENT
LOWaltair/utils/schemapi.py61_VEGA_LITE_ROOT_URI: Final = "urn:vega-lite-schema"COMMENT
LOWaltair/utils/_transformed_data.py141 # Return DataFrame (or None if it was excluded) if input was a simple ChartCOMMENT
LOWaltair/vegalite/v6/api.py2081 # Validate formatCOMMENT
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.py1623CODE
LOWaltair/vegalite/v6/api.py1736CODE
LOWaltair/vegalite/v6/api.py2328CODE
LOWaltair/vegalite/v6/api.py2533CODE
LOWaltair/vegalite/v6/api.py2901CODE
LOWaltair/vegalite/v6/api.py4339CODE
LOWaltair/vegalite/v6/schema/mixins.py494CODE
LOWaltair/vegalite/v6/schema/mixins.py784CODE
LOWaltair/vegalite/v6/schema/mixins.py864CODE
LOWaltair/vegalite/v6/schema/mixins.py958CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtools/schemapi/schemapi.py788 # Transpose the param name columns into rows to facilitate loopingCOMMENT
MEDIUMaltair/utils/schemapi.py790 # Transpose the param name columns into rows to facilitate loopingCOMMENT
MEDIUMaltair/vegalite/v6/api.py4963 # 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.py219 except Exception as e:CODE
LOWaltair/datasets/_reader.py226 except Exception as e:CODE
LOWaltair/vegalite/v6/api.py3808 except Exception:CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/schemapi/schemapi.py742 # Check if str as e.g. first item can be a 0COMMENT
LOWaltair/utils/schemapi.py744 # Check if str as e.g. first item can be a 0COMMENT
LOWaltair/vegalite/v6/api.py4088 # Check if we have a cached hash from before data was hoistedCOMMENT