Declarative visualization library for Python
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 3 | CODE | |
| LOW | tools/codemod.py | 2 | CODE | |
| LOW | tools/docs_cli.py | 1 | CODE | |
| LOW | tools/sync_website.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/__init__.py | 1 | CODE | |
| LOW | tools/markup.py | 3 | CODE | |
| LOW | tools/generate_api_docs.py | 3 | CODE | |
| LOW | tools/fs.py | 3 | CODE | |
| LOW | tools/versioning.py | 23 | CODE | |
| LOW | tools/vega_expr.py | 8 | CODE | |
| LOW | tools/download_docs_artifact.py | 1 | CODE | |
| LOW | tools/datasets/datapackage.py | 8 | CODE | |
| LOW | tools/datasets/models.py | 3 | CODE | |
| LOW | tools/datasets/__init__.py | 16 | CODE | |
| LOW | tools/datasets/npm.py | 1 | CODE | |
| LOW | tools/schemapi/schemapi.py | 1 | CODE | |
| LOW | tools/schemapi/schemapi.py | 33 | CODE | |
| LOW | tools/schemapi/__init__.py | 3 | CODE | |
| LOW | tools/schemapi/__init__.py | 3 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 4 | CODE | |
| LOW | tools/schemapi/__init__.py | 10 | CODE | |
| LOW | tools/schemapi/__init__.py | 10 | CODE | |
| LOW | tools/schemapi/__init__.py | 11 | CODE | |
| LOW | tools/schemapi/__init__.py | 11 | CODE | |
| LOW | tools/schemapi/__init__.py | 12 | CODE | |
| LOW | tools/schemapi/utils.py | 3 | CODE | |
| LOW | tools/schemapi/codegen.py | 3 | CODE | |
| LOW | sphinxext/schematable.py | 1 | CODE | |
| LOW | sphinxext/utils.py | 1 | CODE | |
| LOW | sphinxext/altairgallery.py | 1 | CODE | |
| LOW | sphinxext/code_ref.py | 3 | CODE | |
| LOW | tests/test_datasets.py | 1 | CODE | |
| LOW | tests/test_magics.py | 1 | CODE | |
| LOW | tests/test_jupyter_chart.py | 12 | CODE | |
| LOW | tests/test_jupyter_chart.py | 29 | CODE | |
| LOW | tests/__init__.py | 1 | CODE | |
| LOW | tests/__init__.py | 15 | CODE | |
| LOW | tests/altair_theme_test.py | 2 | CODE | |
| LOW | tests/test_examples.py | 20 | CODE | |
| LOW | tests/expr/test_expr.py | 1 | CODE | |
| LOW | tests/utils/test_mimebundle.py | 1 | CODE | |
| LOW | tests/utils/test_core.py | 1 | CODE | |
| LOW | tests/utils/test_schemapi.py | 2 | CODE | |
| LOW | tests/utils/test_data.py | 1 | CODE | |
| LOW | tests/vegalite/v6/test_geo_interface.py | 1 | CODE | |
| LOW | tests/vegalite/v6/test_theme.py | 1 | CODE | |
| LOW | tests/vegalite/v6/test_theme.py | 26 | CODE | |
| LOW | tests/vegalite/v6/test_theme.py | 28 | CODE | |
| LOW | tests/vegalite/v6/test_api.py | 3 | CODE | |
| LOW | tests/vegalite/v6/schema/test_channels.py | 1 | CODE | |
| LOW | altair/theme.py | 3 | CODE | |
| 243 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 605 | def load_schema_with_shorthand_properties(fp: Path, /) -> dict[str, Any]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 665 | def get_field_datum_value_defs( | STRING |
| LOW | tools/generate_schema_wrapper.py | 716 | def generate_vegalite_schema_wrapper(fp: Path, /) -> ModuleDef[str]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 823 | def generate_vegalite_channel_wrappers(fp: Path, /) -> ModuleDef[list[str]]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 924 | def generate_vegalite_mark_mixin(fp: Path, /, markdefs: dict[str, str]) -> str: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1035 | def generate_config_typed_dicts(fp: Path, /) -> Iterator[str]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1079 | def find_theme_config_targets(info: SchemaInfo, depth: int = 0, /) -> set[SchemaInfo]: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1091 | def generate_vegalite_config_mixin(fp: Path, /) -> str: | STRING |
| LOW | tools/generate_schema_wrapper.py | 1302 | def generate_encoding_artifacts( | STRING |
| LOW | tools/vega_expr.py | 752 | def is_overloaded_string_array(self) -> bool: | STRING |
| LOW | tools/download_docs_artifact.py | 45 | def latest_docbuild_run_id_for_pr(pr_number: int) -> str: | CODE |
| LOW⚡ | tools/schemapi/schemapi.py | 207 | def _get_json_schema_draft_url(schema: dict[str, Any]) -> str: | CODE |
| LOW⚡ | tools/schemapi/schemapi.py | 216 | def _prepare_references_in_schema(schema: dict[str, Any]) -> dict[str, Any]: | CODE |
| LOW | tools/schemapi/schemapi.py | 253 | def _get_referencing_registry( | CODE |
| LOW | tools/schemapi/schemapi.py | 293 | def _group_errors_by_json_path( | CODE |
| LOW | tools/schemapi/schemapi.py | 310 | def _get_leaves_of_error_tree( | CODE |
| LOW | tools/schemapi/schemapi.py | 331 | def _subset_to_most_specific_json_paths( | CODE |
| LOW | tools/schemapi/schemapi.py | 351 | def _contained_at_start_of_one_of_other_values(x: str, values: Sequence[str]) -> bool: | CODE |
| LOW | tools/schemapi/schemapi.py | 400 | def _group_errors_by_validator(errors: ValidationErrorList) -> GroupedValidationErrors: | CODE |
| LOW | tools/schemapi/schemapi.py | 439 | def _deduplicate_additional_properties_errors( | CODE |
| LOW | tools/schemapi/schemapi.py | 667 | def indent_second_line_onwards(message: str, indent: int = 4) -> str: | CODE |
| LOW | tools/schemapi/schemapi.py | 691 | def _get_message_for_errors_group( | CODE |
| LOW | tools/schemapi/schemapi.py | 707 | def _get_additional_properties_error_message( | CODE |
| LOW | tools/schemapi/schemapi.py | 728 | def _get_altair_class_for_error( | CODE |
| LOW | tools/schemapi/schemapi.py | 828 | def _get_default_error_message( | CODE |
| LOW | tools/schemapi/schemapi.py | 1409 | def _replace_parsed_shorthand( | CODE |
| LOW | tests/test_vega_expr.py | 4 | def test_split_signature_tokens_handles_embedded_open_bracket() -> None: | CODE |
| LOW⚡ | tests/test_datasets.py | 128 | def is_geopandas_backed_pandas(loader: Loader[Any, Any], /) -> bool: | CODE |
| LOW⚡ | tests/test_datasets.py | 619 | def test_no_remote_connection(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_datasets.py | 332 | def test_reader_missing_dependencies() -> None: | CODE |
| LOW | tests/test_datasets.py | 357 | def test_reader_missing_implementation() -> None: | CODE |
| LOW | tests/test_datasets.py | 441 | def test_reader_cache_exhaustive( | CODE |
| LOW | tests/test_datasets.py | 498 | def test_reader_cache_disable(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: | CODE |
| LOW | tests/test_datasets.py | 670 | def test_polars_date_read_json_roundtrip( | CODE |
| LOW | tests/test_datasets.py | 783 | def test_nonexistent_dataset_attribute(self): | CODE |
| LOW | tests/test_transformed_data.py | 84 | def test_primitive_chart_examples(filename, rows, cols, to_reconstruct): | CODE |
| LOW | tests/test_transformed_data.py | 142 | def test_compound_chart_examples(filename, all_rows, all_cols, to_reconstruct): | CODE |
| LOW | tests/test_transformed_data.py | 169 | def test_transformed_data_exclude(to_reconstruct): | CODE |
| LOW⚡ | tests/test_magics.py | 58 | def test_vegalite_magic_data_included(ipshell, vl_spec) -> None: | CODE |
| LOW⚡ | tests/test_magics.py | 65 | def test_vegalite_magic_json_flag(ipshell, vl_spec) -> None: | CODE |
| LOW⚡ | tests/test_magics.py | 72 | def test_vegalite_magic_pandas_data(ipshell, vl_spec) -> None: | CODE |
| LOW | tests/test_jupyter_chart.py | 51 | def test_chart_with_no_interactivity(transformer): | CODE |
| LOW | tests/test_jupyter_chart.py | 77 | def test_interval_selection_example(transformer): | CODE |
| LOW | tests/test_jupyter_chart.py | 145 | def test_index_selection_example(transformer): | CODE |
| LOW | tests/test_toplevel.py | 5 | def test_completeness_of__all__(): | CODE |
| LOW⚡ | tests/test_examples.py | 37 | def test_render_examples_to_chart(source: Any, filename: str) -> None: | CODE |
| LOW⚡ | tests/test_examples.py | 54 | def test_from_and_to_json_roundtrip(source: Any, filename: str) -> None: | CODE |
| LOW | tests/test_examples.py | 85 | def test_render_examples_to_png(source: Any, filename: str) -> None: | CODE |
| LOW | tests/examples_methods_syntax/deviation_ellipses.py | 53 | def grouped_confidence_regions(df, col_x, col_y, col_group): | CODE |
| LOW | tests/examples_methods_syntax/__init__.py | 9 | def iter_examples_methods_syntax(): | CODE |
| LOW | tests/expr/test_expr.py | 127 | def test_expr_consts_immutable(constname: str): | CODE |
| LOW⚡ | tests/expr/test_expr.py | 170 | def test_expression_function_expr(): | CODE |
| LOW⚡ | tests/expr/test_expr.py | 177 | def test_expression_function_string(): | CODE |
| LOW⚡ | tests/expr/test_expr.py | 184 | def test_expression_function_nostring(): | CODE |
| LOW | tests/expr/test_expr.py | 224 | def test_expr_datetime_unsupported_timezone(tzinfo: dt.timezone) -> None: | CODE |
| LOW | tests/utils/test_deprecation.py | 25 | def test_deprecation_decorator(): | CODE |
| LOW | tests/utils/test_mimebundle.py | 167 | def test_vegalite_to_vega_mimebundle(vegalite_spec, vega_spec): | CODE |
| LOW | tests/utils/test_mimebundle.py | 181 | def test_spec_to_vegalite_mimebundle(vegalite_spec): | CODE |
| LOW | tests/utils/test_mimebundle.py | 191 | def test_spec_to_vega_mimebundle(vega_spec): | CODE |
| LOW | tests/utils/test_mimebundle.py | 202 | def test_spec_to_json_mimebundle(vegalite_spec): | CODE |
| 174 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_datasets.py | 135 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_datasets.py | 137 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_datasets.py | 610 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_datasets.py | 612 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 36 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 38 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 95 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 97 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 246 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 248 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 291 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 293 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 384 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 386 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 523 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 525 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 580 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 582 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 654 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 656 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 739 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_datasets.py | 741 | # ============================================================================= | COMMENT |
| MEDIUM | altair/utils/compiler.py | 6 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/compiler.py | 8 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 18 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 20 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 119 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/display.py | 121 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 76 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 86 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 106 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 347 | # ============================================================================== | COMMENT |
| MEDIUM | altair/utils/data.py | 349 | # ============================================================================== | COMMENT |
| MEDIUM | altair/vegalite/v6/display.py | 26 | # ============================================================================== | COMMENT |
| MEDIUM | altair/vegalite/v6/display.py | 28 | # ============================================================================== | COMMENT |
| MEDIUM⚡ | altair/vegalite/v6/api.py | 358 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | altair/vegalite/v6/api.py | 362 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | altair/vegalite/v6/api.py | 369 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 210 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 306 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 575 | # ------------------------------------------------------------------------- | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 1394 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 2005 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | altair/vegalite/v6/data.py | 15 | # ============================================================================== | COMMENT |
| MEDIUM | altair/vegalite/v6/data.py | 17 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/schemapi/schemapi.py | 177 | # (Gradient|string|null)>' would be a valid $ref in a Vega-Lite schema but | COMMENT |
| HIGH | tests/examples_methods_syntax/wheat_wages.py | 18 | offset="((!datum.commonwealth && datum.index % 2) ? -1: 1) * 2 + 95", | CODE |
| HIGH | tests/examples_methods_syntax/wheat_wages.py | 19 | off2="((!datum.commonwealth && datum.index % 2) ? -1: 1) + 95", | CODE |
| HIGH | tests/expr/test_expr.py | 139 | assert repr(datum.xxx == None) == "(datum.xxx === null)" # noqa: E711 | CODE |
| HIGH | tests/utils/test_utils.py | 87 | assert df.equals(df2) | CODE |
| HIGH | tests/utils/test_data.py | 118 | assert output.equals(data) | CODE |
| HIGH | tests/utils/test_data.py | 163 | assert output.equals(data) | CODE |
| HIGH | …s_arguments_syntax/interactive_reorder_stacked_bars.py | 23 | site_order=f"if({selection.name}.site && indexof({selection.name}.site, datum.site) !== -1, 0, 1)" | CODE |
| HIGH | tests/examples_arguments_syntax/wheat_wages.py | 18 | offset="((!datum.commonwealth && datum.index % 2) ? -1: 1) * 2 + 95", | CODE |
| HIGH | tests/examples_arguments_syntax/wheat_wages.py | 19 | off2="((!datum.commonwealth && datum.index % 2) ? -1: 1) + 95", | CODE |
| HIGH | altair/expr/__init__.py | 2028 | If there is no container element, returns ``[undefined, undefined]``. | STRING |
| HIGH | altair/expr/__init__.py | 2044 | """Returns the current window size (``[window.innerWidth, window.innerHeight]``) or ``[undefined, undefined]`` i | STRING |
| HIGH | altair/expr/funcs.py | 157 | "containerSize": r"Returns the current CSS box size (`[el.clientWidth, el.clientHeight]`) of the parent DOM element | CODE |
| HIGH | altair/expr/funcs.py | 159 | "windowSize": r"Returns the current window size (`[window.innerWidth, window.innerHeight]`) or `[undefined, undefine | CODE |
| HIGH | altair/utils/schemapi.py | 179 | # (Gradient|string|null)>' would be a valid $ref in a Vega-Lite schema but | COMMENT |
| HIGH | altair/utils/html.py | 286 | if (rows && rows.length && looksLikeFips(rows, 'id')) { | STRING |
| HIGH | altair/utils/core.py | 457 | # Also convert NaN/inf values to null, as they are not JSON serializable | COMMENT |
| HIGH | altair/utils/_dfi_types.py | 79 | - Data types not included: complex, Arrow-style null, binary, decimal, | STRING |
| HIGH⚡ | altair/vegalite/v6/api.py | 3719 | following the current data object. The default value is ``[null, 0]``, indicating | STRING |
| HIGH⚡ | altair/vegalite/v6/api.py | 3722 | and five objects following the current object. Finally, ``[null, null]`` indicates | STRING |
| HIGH⚡ | altair/vegalite/v6/api.py | 3728 | **Default value:** : ``[null, 0]`` (includes the current object and all preceding | STRING |
| HIGH | altair/vegalite/v6/api.py | 3007 | **Default value:** : ``[null, null]`` indicating that the window includes all | STRING |
| HIGH | altair/vegalite/v6/schema/_config.py | 1705 | Sets the minimum slider increment. If undefined, the step size will be automatically | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tools/schemapi/schemapi.py | 217 | # Create a copy so that $ref is not modified in the original schema in case | COMMENT |
| MEDIUM | tools/schemapi/schemapi.py | 1475 | # Create a mapping of a schema hash to a list of matching classes | COMMENT |
| MEDIUM | …/examples_methods_syntax/multiline_tooltip_standard.py | 21 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | tests/examples_methods_syntax/select_detail.py | 30 | # Create a 50-element time-series for each object | COMMENT |
| MEDIUM | tests/examples_methods_syntax/poly_fit_regression.py | 19 | # Define the degree of the polynomial fits | COMMENT |
| MEDIUM | tests/examples_methods_syntax/multiline_tooltip.py | 25 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | …xamples_methods_syntax/line_with_last_value_labeled.py | 13 | # Create a common chart object | COMMENT |
| MEDIUM | …xamples_methods_syntax/line_with_last_value_labeled.py | 33 | # Create a text label | COMMENT |
| MEDIUM | …xamples_methods_syntax/line_with_last_value_labeled.py | 36 | # Create a circle annotation | COMMENT |
| MEDIUM | tests/examples_methods_syntax/polar_bar_chart.py | 26 | # Create the circular axis lines for the number of observations | COMMENT |
| MEDIUM | tests/examples_methods_syntax/polar_bar_chart.py | 36 | # Create the straight axis lines for the time of the day | COMMENT |
| MEDIUM | …ples_methods_syntax/interactive_layered_crossfilter.py | 19 | # Define the base chart, with the common parts of the | COMMENT |
| MEDIUM | tests/vegalite/v6/test_params.py | 213 | # Define the base chart, with the common parts of the | COMMENT |
| MEDIUM⚡ | tests/vegalite/v6/test_params.py | 265 | # Create a chart and add both parameters - should raise an error | COMMENT |
| MEDIUM | …xamples_arguments_syntax/multiline_tooltip_standard.py | 21 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/select_detail.py | 30 | # Create a 50-element time-series for each object | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/poly_fit_regression.py | 19 | # Define the degree of the polynomial fits | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/multiline_tooltip.py | 25 | # Create a selection that chooses the nearest point & selects based on x-value | COMMENT |
| MEDIUM | …mples_arguments_syntax/line_with_last_value_labeled.py | 13 | # Create a common chart object | COMMENT |
| MEDIUM | …mples_arguments_syntax/line_with_last_value_labeled.py | 31 | # Create a text label | COMMENT |
| MEDIUM | …mples_arguments_syntax/line_with_last_value_labeled.py | 34 | # Create a circle annotation | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/polar_bar_chart.py | 27 | # Create the circular axis lines for the number of observations | COMMENT |
| MEDIUM | tests/examples_arguments_syntax/polar_bar_chart.py | 37 | # Create the straight axis lines for the time of the day | COMMENT |
| MEDIUM | …es_arguments_syntax/interactive_layered_crossfilter.py | 19 | # Define the base chart, with the common parts of the | COMMENT |
| MEDIUM⚡ | altair/utils/schemapi.py | 219 | # Create a copy so that $ref is not modified in the original schema in case | COMMENT |
| MEDIUM | altair/utils/schemapi.py | 1477 | # Create a mapping of a schema hash to a list of matching classes | COMMENT |
| MEDIUM | altair/utils/_transformed_data.py | 160 | # This function is only used internally and so we accept this inconsistency for now. | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 387 | # Create a hash data structure with parameter information | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 396 | # Create a copy of param_dict without the name field for hash computation | COMMENT |
| MEDIUM | doc/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/schemapi/schemapi.py | 0 | construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to co | STRING |
| HIGH | altair/utils/schemapi.py | 0 | construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to co | STRING |
| HIGH | altair/vegalite/v6/api.py | 0 | construct a ``chart`` from a dictionary representation. parameters ---------- dct : dictionary the dict from which to co | STRING |
| HIGH | …xamples_methods_syntax/beckers_barley_wrapped_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | tests/examples_methods_syntax/beckers_barley_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | …mples_arguments_syntax/beckers_barley_wrapped_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | tests/examples_arguments_syntax/beckers_barley_facet.py | 0 | becker's barley faceted plot ---------------------------- the example demonstrates the faceted charts created by richard | STRING |
| HIGH | …xamples_methods_syntax/normalized_stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| HIGH | …mples_arguments_syntax/normalized_stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| HIGH | …mples_arguments_syntax/horizontal_stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| HIGH | tests/examples_arguments_syntax/stacked_bar_chart.py | 0 | stacked bar chart ----------------- this is an example of a stacked bar chart using data which contains crop yields over | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 605 | CODE | |
| LOW | tools/generate_schema_wrapper.py | 649 | CODE | |
| LOW | tools/generate_schema_wrapper.py | 823 | CODE | |
| LOW | tools/vega_expr.py | 577 | CODE | |
| LOW | tools/vega_expr.py | 613 | CODE | |
| LOW | tools/vega_expr.py | 855 | CODE | |
| LOW | tools/update_init_file.py | 185 | CODE | |
| LOW | tools/update_init_file.py | 209 | CODE | |
| LOW | tools/schemapi/schemapi.py | 216 | CODE | |
| LOW | tools/schemapi/schemapi.py | 474 | CODE | |
| LOW | tools/schemapi/schemapi.py | 524 | CODE | |
| LOW | tools/schemapi/schemapi.py | 222 | CODE | |
| LOW | tools/schemapi/schemapi.py | 1483 | CODE | |
| LOW | tools/schemapi/utils.py | 1310 | CODE | |
| LOW | tools/schemapi/utils.py | 446 | CODE | |
| LOW | tools/schemapi/utils.py | 583 | CODE | |
| LOW | tools/schemapi/codegen.py | 95 | CODE | |
| LOW | tools/schemapi/codegen.py | 381 | CODE | |
| LOW | sphinxext/schematable.py | 20 | CODE | |
| LOW | sphinxext/altairgallery.py | 198 | CODE | |
| LOW | tests/__init__.py | 216 | CODE | |
| LOW | tests/vegalite/v6/test_api.py | 60 | CODE | |
| LOW | tests/vegalite/v6/test_api.py | 836 | CODE | |
| LOW | altair/datasets/_cache.py | 269 | CODE | |
| LOW | altair/datasets/_reader.py | 467 | CODE | |
| LOW | altair/datasets/_exceptions.py | 30 | CODE | |
| LOW | altair/expr/core.py | 37 | CODE | |
| LOW | altair/utils/save.py | 78 | CODE | |
| LOW | altair/utils/schemapi.py | 218 | CODE | |
| LOW | altair/utils/schemapi.py | 476 | CODE | |
| LOW | altair/utils/schemapi.py | 526 | CODE | |
| LOW | altair/utils/schemapi.py | 224 | CODE | |
| LOW | altair/utils/schemapi.py | 1485 | CODE | |
| LOW | altair/utils/core.py | 228 | CODE | |
| LOW | altair/utils/core.py | 337 | CODE | |
| LOW | altair/utils/core.py | 469 | CODE | |
| LOW | altair/utils/core.py | 898 | CODE | |
| LOW | altair/utils/_transformed_data.py | 182 | CODE | |
| LOW | altair/utils/_transformed_data.py | 247 | CODE | |
| LOW | altair/utils/_transformed_data.py | 429 | CODE | |
| LOW | altair/utils/_transformed_data.py | 527 | CODE | |
| LOW | altair/utils/mimebundle.py | 65 | CODE | |
| LOW | altair/utils/mimebundle.py | 171 | CODE | |
| LOW | altair/utils/data.py | 180 | CODE | |
| LOW | altair/utils/data.py | 317 | CODE | |
| LOW | altair/utils/data.py | 366 | CODE | |
| LOW | altair/utils/data.py | 388 | CODE | |
| LOW | altair/utils/_show.py | 11 | CODE | |
| LOW | altair/vegalite/v6/api.py | 634 | CODE | |
| LOW | altair/vegalite/v6/api.py | 4303 | CODE | |
| LOW | altair/vegalite/v6/api.py | 5254 | CODE | |
| LOW | altair/vegalite/v6/api.py | 5395 | CODE | |
| LOW | altair/vegalite/v6/api.py | 5431 | CODE | |
| LOW | altair/vegalite/v6/api.py | 1048 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 24 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 52 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 221 | CODE | |
| LOW | altair/jupyter/jupyter_chart.py | 353 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_schema_wrapper.py | 587 | def update_vega_themes(fp: Path, /, indent: str | int | None = 2) -> None: | STRING |
| LOW | tools/codemod.py | 31 | __all__ = ["extract_func_def", "extract_func_def_embed", "ruff", "ruff_inline_docs"] | CODE |
| LOW | tools/__init__.py | 11 | __all__ = [ | CODE |
| LOW | tools/fs.py | 15 | __all__ = [ | CODE |
| LOW | tools/versioning.py | 58 | __all__ = ["VERSIONS"] | CODE |
| LOW | tools/versioning.py | 205 | def update_all(self) -> None: | CODE |
| LOW | tools/versioning.py | 210 | def update_vega_embed(self) -> None: | CODE |
| LOW | tools/vega_expr.py | 42 | __all__ = ["parse_expressions", "write_expr_module"] | CODE |
| LOW | tools/update_init_file.py | 49 | def update__all__variable() -> None: | CODE |
| LOW | tools/update_init_file.py | 230 | def update_dynamic__all__(source: str | Path, /) -> None: | CODE |
| LOW | tools/datasets/datapackage.py | 28 | __all__ = ["DataPackage"] | CODE |
| LOW | tools/datasets/__init__.py | 41 | __all__ = ["app"] | CODE |
| LOW | tools/datasets/npm.py | 28 | __all__ = ["Npm"] | CODE |
| LOW | tools/schemapi/__init__.py | 14 | __all__ = [ | CODE |
| LOW | tools/schemapi/utils.py | 135 | def _update_literals(self, name: str, tp: str, /) -> None: | CODE |
| LOW | tools/schemapi/utils.py | 184 | def update_aliases(self, *name_statement: tuple[str, str]) -> None: | CODE |
| LOW | altair/theme.py | 94 | __all__ = [ | CODE |
| LOW | altair/_magics.py | 15 | __all__ = ["vegalite"] | CODE |
| LOW | altair/__init__.py | 8 | __all__ = [ | CODE |
| LOW | altair/datasets/_cache.py | 54 | __all__ = ["CsvCache", "DatasetCache", "SchemaCache", "csv_cache"] | CODE |
| LOW | altair/datasets/_data.py | 291 | def set_default_engine(self, engine: _Backend) -> None: | CODE |
| LOW | altair/datasets/_typing.py | 20 | __all__ = ["Dataset", "Extension", "Metadata"] | CODE |
| LOW | altair/datasets/_loader.py | 28 | __all__ = ["Loader", "load"] | CODE |
| LOW | altair/datasets/__init__.py | 95 | __all__ = ["Loader", "data", "load", "url"] | CODE |
| LOW | altair/datasets/_readimpl.py | 51 | __all__ = ["is_available", "pa_any", "pd_only", "pd_pyarrow", "pl_only", "read", "scan"] | CODE |
| LOW | altair/datasets/_constraints.py | 23 | __all__ = [ | CODE |
| LOW | altair/utils/plugin_registry.py | 193 | def _set_state(self, state: dict[str, Any]) -> None: | CODE |
| LOW | altair/utils/deprecation.py | 20 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/__init__.py | 28 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/api.py | 155 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/schema/_typing.py | 33 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/schema/__init__.py | 13 | __all__ = [ | CODE |
| LOW | altair/vegalite/v6/schema/_config.py | 24 | __all__ = [ | CODE |
| LOW | altair/typing/__init__.py | 5 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/schemapi/schemapi.py | 61 | # Ideally, jsonschema specification would be parsed from the current Vega-Lite | COMMENT |
| LOW | altair/utils/schemapi.py | 61 | _VEGA_LITE_ROOT_URI: Final = "urn:vega-lite-schema" | COMMENT |
| LOW | altair/utils/_transformed_data.py | 141 | # Return DataFrame (or None if it was excluded) if input was a simple Chart | COMMENT |
| LOW | altair/vegalite/v6/api.py | 2081 | # Validate format | COMMENT |
| LOW | doc/conf.py | 1 | # !/usr/bin/env python3 | COMMENT |
| LOW | doc/conf.py | 81 | COMMENT | |
| LOW | doc/conf.py | 121 | COMMENT | |
| LOW | doc/conf.py | 241 | COMMENT | |
| LOW | doc/conf.py | 261 | } | COMMENT |
| LOW | doc/conf.py | 281 | COMMENT | |
| LOW | doc/conf.py | 301 | # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja' | COMMENT |
| LOW | doc/conf.py | 321 | # The paper size ('letterpaper' or 'a4paper'). | COMMENT |
| LOW | doc/conf.py | 341 | ), | COMMENT |
| LOW | doc/conf.py | 361 | # If false, no module index is generated. | COMMENT |
| LOW | doc/conf.py | 401 | # If true, do not generate a @detailmenu in the "Top" node's menu. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/utils/test_data.py | 38 | CODE | |
| LOW | tests/utils/test_data.py | 43 | CODE | |
| LOW | altair/utils/save.py | 171 | CODE | |
| LOW | altair/utils/html.py | 330 | CODE | |
| LOW | altair/utils/display.py | 49 | CODE | |
| LOW | altair/vegalite/v6/api.py | 1623 | CODE | |
| LOW | altair/vegalite/v6/api.py | 1736 | CODE | |
| LOW | altair/vegalite/v6/api.py | 2328 | CODE | |
| LOW | altair/vegalite/v6/api.py | 2533 | CODE | |
| LOW | altair/vegalite/v6/api.py | 2901 | CODE | |
| LOW | altair/vegalite/v6/api.py | 4339 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 494 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 784 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 864 | CODE | |
| LOW | altair/vegalite/v6/schema/mixins.py | 958 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/schemapi/schemapi.py | 788 | # Transpose the param name columns into rows to facilitate looping | COMMENT |
| MEDIUM | altair/utils/schemapi.py | 790 | # Transpose the param name columns into rows to facilitate looping | COMMENT |
| MEDIUM | altair/vegalite/v6/api.py | 4963 | # Use to_dict() for robust equality comparison of SchemaBase objects. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_examples.py | 44 | except Exception as err: | CODE |
| LOW | tests/test_examples.py | 73 | except Exception as err: | CODE |
| LOW | altair/datasets/_data.py | 268 | except Exception: | CODE |
| LOW | altair/datasets/_reader.py | 219 | except Exception as e: | CODE |
| LOW | altair/datasets/_reader.py | 226 | except Exception as e: | CODE |
| LOW | altair/vegalite/v6/api.py | 3808 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/schemapi/schemapi.py | 742 | # Check if str as e.g. first item can be a 0 | COMMENT |
| LOW | altair/utils/schemapi.py | 744 | # Check if str as e.g. first item can be a 0 | COMMENT |
| LOW | altair/vegalite/v6/api.py | 4088 | # Check if we have a cached hash from before data was hoisted | COMMENT |