AI Slop Code Risk Monitor

pola-rs/polars

SlopCodeMonitor badge for pola-rs/polars Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Extremely fast Query Engine for DataFrames, written in Rust

9.2 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pola-rs/polars, a Rust project with 40,237 GitHub stars. SynthScan examined 967,346 lines of code across 3327 source files, recording 8474 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 9.2 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

9.2
Adjusted Signal
9.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
40.2K
Stars
Rust
Language
967.3K
Lines of Code
3.3K
Files
8.5K
Pattern Hits
2026-10-31
Scan Date
0.09
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 25.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 11.2/100 · LOW

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

Agent Over-Engineering Ratio 25.2/100 · MEDIUM

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

PR Review Velocity Impact 41.8/100 · MEDIUM

Which changes need focused human review? 8474 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 296MEDIUM 253LOW 7925

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 8474 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers5676 hits · 4664 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/conftest.py399def _check_lazy_collect_schema(CODE
LOWpy-polars/tests/benchmark/test_io.py12def test_write_read_scan_large_csv(groupby_data: pl.DataFrame, tmp_path: Path) -> None:CODE
LOWpy-polars/tests/benchmark/test_join_where.py29def test_non_strict_inequalities(east_west: tuple[pl.DataFrame, pl.DataFrame]) -> None:CODE
LOWpy-polars/tests/benchmark/test_join_where.py94def test_join_where_invalid_column() -> None:CODE
LOW⚡py-polars/tests/benchmark/interop/test_numpy.py44def test_to_numpy_series_zero_copy(floats: pl.Series) -> None:CODE
LOW⚡py-polars/tests/benchmark/interop/test_numpy.py48def test_to_numpy_series_with_nulls(floats_with_nulls: pl.Series) -> None:CODE
LOW⚡py-polars/tests/benchmark/interop/test_numpy.py52def test_to_numpy_series_chunked(floats_chunked: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/conftest.py222def memory_usage_without_pyarrow() -> Generator[MemoryUsage, Any, Any]:CODE
LOW⚡py-polars/tests/unit/test_conftest.py52def test_lazy_schema_check_fires() -> None:CODE
LOW⚡py-polars/tests/unit/test_conftest.py59def test_lazy_schema_check_marker_suppresses() -> None:CODE
LOW⚡py-polars/tests/unit/test_conftest.py63def test_lazy_schema_check_leaves_collect_errors_alone() -> None:CODE
LOW⚡py-polars/tests/unit/test_schema.py6def test_contains_dtype_top_level() -> None:CODE
LOW⚡py-polars/tests/unit/test_schema.py12def test_contains_dtype_recursive_nested() -> None:CODE
LOW⚡py-polars/tests/unit/test_schema.py18def test_contains_dtype_recursive_struct() -> None:CODE
LOWpy-polars/tests/unit/series/test_to_list.py27def test_series_to_list_out_of_range_datetime() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py26def test_series_describe_float() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py45def test_series_describe_string() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py59def test_series_describe_boolean() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py77def test_series_describe_date() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py95def test_series_describe_empty() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py106def test_series_describe_null() -> None:CODE
LOWpy-polars/tests/unit/series/test_describe.py117def test_series_describe_nested_list() -> None:CODE
LOWpy-polars/tests/unit/series/test_getitem.py45def test_series_getitem_range(rng: range, expected_values: list[int]) -> None:CODE
LOWpy-polars/tests/unit/series/test_getitem.py60def test_series_getitem_boolean_mask(mask: Any) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_getitem.py73def test_series_getitem_empty_inputs(input: Any) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_getitem.py81def test_series_getitem_multiple_indices(indices: Any) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_getitem.py88def test_series_getitem_numpy() -> None:CODE
LOWpy-polars/tests/unit/series/test_getitem.py115def test_series_getitem_col_invalid_inputs(input: Any, match: str) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py29def test_series_rolling_min_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py35def test_series_rolling_max_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py41def test_series_rolling_sum_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py47def test_series_rolling_mean_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py82def test_series_rolling_rank_by_with_nulls(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py91def test_series_rolling_quantile_by_with_nulls(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py100def test_series_rolling_median_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py106def test_series_rolling_std_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py112def test_series_rolling_var_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py118def test_series_rolling_quantile_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py124def test_series_rolling_rank_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py130def test_series_rolling_min_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py138def test_series_rolling_max_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py146def test_series_rolling_sum_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py154def test_series_rolling_mean_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py162def test_series_rolling_median_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py170def test_series_rolling_std_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py178def test_series_rolling_var_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py186def test_series_rolling_quantile_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py194def test_series_rolling_rank_by_temporal(CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py202def test_series_rolling_mean_by_null_by_single() -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py210def test_series_rolling_mean_by_null_by_all() -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py218def test_series_rolling_mean_by_null_by_unsorted() -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py226def test_series_rolling_mean_by_null_by_and_values() -> None:CODE
LOW⚡py-polars/tests/unit/series/test_rolling.py234def test_series_rolling_mean_by_null_by_multiple() -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py64def test_series_rolling_by_with_nulls(CODE
LOW⚡py-polars/tests/unit/series/test_equals.py55def test_series_equals_check_names() -> None:CODE
LOWpy-polars/tests/unit/series/test_equals.py126def test_series_equals_strict_removed() -> None:CODE
LOWpy-polars/tests/unit/series/test_scatter.py130def test_scatter_logical_all_null() -> None:CODE
LOWpy-polars/tests/unit/series/test_zip_with.py7def test_zip_with_all_true_mask() -> None:CODE
LOWpy-polars/tests/unit/series/test_zip_with.py16def test_zip_with_all_false_mask() -> None:CODE
LOW⚡py-polars/tests/unit/series/test_zip_with.py35def test_zip_with_series_comparison() -> None:CODE
5616 more matches not shown…
Cross-Language Confusion283 hits · 1357 pts
SeverityFileLineSnippetContext
HIGH⚡py-polars/tests/unit/series/test_equals.py16 assert s1.equals(s2) is TrueCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py17 assert s1.equals(s2, check_dtypes=True) is FalseCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py18 assert s1.equals(s2, null_equal=False) is FalseCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py30 assert s3.equals(s4) is FalseCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py31 assert s3.equals(s4, check_dtypes=True) is FalseCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py32 assert s3.equals(s4, null_equal=False) is FalseCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py39 s1.equals(pl.DataFrame(s2), check_names=False) # type: ignore[arg-type]CODE
HIGH⚡py-polars/tests/unit/series/test_equals.py45 s1.equals(pl.DataFrame(s2).lazy(), check_names=False) # type: ignore[arg-type]CODE
HIGH⚡py-polars/tests/unit/series/test_equals.py52 assert s5.equals(DummySeriesSubclass(s5)) is TrueCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py58 assert s1.equals(s2) is TrueCODE
HIGH⚡py-polars/tests/unit/series/test_equals.py59 assert s1.equals(s2, check_names=True) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py131 s1.equals(s2, strict=True) # type: ignore[call-arg]CODE
HIGHpy-polars/tests/unit/series/test_equals.py324 assert s.equals(s)CODE
HIGHpy-polars/tests/unit/series/test_series.py2480 assert calculated.equals(expected)CODE
HIGH⚡py-polars/tests/unit/dataframe/test_df.py3330 assert df.equals(expected)CODE
HIGH⚡py-polars/tests/unit/dataframe/test_df.py3337 assert df.equals(expected)CODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py23 assert df1.equals(df1) is TrueCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py24 assert df1.equals(df2) is FalseCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py34 assert df1.equals(df3) is FalseCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py44 assert df.equals(df.with_columns(pl.col("foo").cast(pl.Int8))) is TrueCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py45 assert df.equals(df.with_columns(pl.col("ham").cast(pl.Categorical))) is TrueCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py48 assert df.equals(df) is TrueCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py49 assert df.equals(df, null_equal=False) is FalseCODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py60 df1.equals(df2.lazy()) # type: ignore[arg-type]CODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py66 df1.equals(pl.Series([1, 2, 3])) # type: ignore[arg-type]CODE
HIGH⚡py-polars/tests/unit/dataframe/test_equals.py73 assert df1.equals(df2) is TrueCODE
HIGHpy-polars/tests/unit/dataframe/test_glimpse.py53 $ d <str> null, 'b', 'c'STRING
HIGHpy-polars/tests/unit/dataframe/test_0_width_df.py13 assert df.equals(df)CODE
HIGHpy-polars/tests/unit/dataframe/test_0_width_df.py14 assert not df.equals(pl.DataFrame())CODE
HIGHpy-polars/tests/unit/datatypes/test_list.py860 assert expected.equals(actual)CODE
HIGHpy-polars/tests/unit/datatypes/test_temporal.py1563 # 02:00 and 02:30 don't exist and become null, in the middle of the series.COMMENT
HIGHpy-polars/tests/unit/datatypes/test_temporal.py382 assert s.equals(tz_s, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/datatypes/test_temporal.py383 assert s.equals(tz_s, null_equal=True) is FalseCODE
HIGHpy-polars/tests/unit/datatypes/test_struct.py480 # the same field names, else by name (with any missing fields set to null)COMMENT
HIGHpy-polars/tests/unit/datatypes/test_struct.py535 # should actually be null, rather than structs of nullsCOMMENT
HIGH⚡py-polars/tests/unit/datatypes/test_map.py2937 # A composite key cannot be null, so a null needle is never found.COMMENT
HIGHpy-polars/tests/unit/datatypes/test_map.py959 # Inner maps of `{p: null, q: {b: 2, c: 3}}`, with `a` under `p` on input.COMMENT
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1091 assert not ordered.equals(swapped)CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1379 assert df.write_ndjson() == '{"m":{"a":"x","b":null}}\n{"m":{"c":"y"}}\n'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1408 doc = f'[{{"a":1,"m":{obj}}},{{"a":2,"m":null}}]'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1409 ndjson = f'{{"a":1,"m":{obj}}}\n{{"a":2,"m":null}}\n'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1469 '{"map_of_map":{"a":{"x":2,"y":null},"b":null},"list":[{"x":2},null,{}],'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1470 '"array":[{"x":2},null],"struct":{"m":{"x":2},"i":1},'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1471 '"struct_values":{"a":{"i":1,"l":[1,null]},"b":null},'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1472 '"list_values":{"a":[1,2],"b":null,"c":[]}}'CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py1511 s = read_json_column(path, ['{"a":[1,2],"b":null}', "null"], dtype)CODE
HIGHpy-polars/tests/unit/datatypes/test_map.py2792 # The cast is exact or null, and a null needle is a key no map holds.COMMENT
HIGH⚡py-polars/tests/unit/datatypes/test_map.py2939 assert_map_method(s, "get", pl.Series("m", [None], dtype=pl.Int64), null)CODE
HIGH⚡py-polars/tests/unit/datatypes/test_map.py2940 assert_map_method(s, "contains_key", pl.Series("m", [False]), null)CODE
HIGHpy-polars/tests/unit/datatypes/test_map.py3029 # Widening the needle can overflow. A Map key is never null, so anCOMMENT
HIGHpy-polars/tests/unit/datatypes/test_map.py1351 rows = ['{"b":0,"a\\"\\\\":1,"é":null}', "null", "{}"]CODE
HIGHpy-polars/tests/unit/datatypes/test_map.py1748 """Rows `{a: 1, b: 2}`, null, `{d: 4, e: 5}`, with `c` hidden under the null row."""STRING
HIGHpy-polars/tests/unit/datatypes/test_datatype_exprs.py84 (pl.List(pl.Null()), "list", "list[null]", None),CODE
HIGHpy-polars/tests/unit/datatypes/test_datatype_exprs.py92 (pl.Array(pl.Null(), 2), "array", "array[null, 2]", 0),CODE
HIGHpy-polars/tests/unit/interop/test_from_pandas.py405 pd_df = pd.DataFrame({"col": ["a", null]})CODE
HIGH⚡py-polars/tests/unit/interop/test_interop.py475 # Create a pyarrow table with a list[null] column.COMMENT
HIGHpy-polars/tests/unit/interop/test_interop.py1183 assert df.equals(df_res)STRING
HIGHpy-polars/tests/unit/io/test_ipc.py122 assert pd_df.equals(pd_df_read)CODE
HIGHpy-polars/tests/unit/io/test_parquet.py4364 # every field is null, so groups with no null struct are skipped (#26239).STRING
HIGHpy-polars/tests/unit/io/test_geoparquet.py89 "b": pl.Extension("geoarrow.wkb", pl.Binary, '{"crs": null}'),CODE
223 more matches not shown…
Unused Imports1143 hits · 932 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/conftest.py1CODE
LOWpy-polars/tests/benchmark/test_group_by.py10CODE
LOWpy-polars/tests/benchmark/test_filter.py3CODE
LOWpy-polars/tests/benchmark/test_join_where.py3CODE
LOWpy-polars/tests/benchmark/interop/test_numpy.py3CODE
LOWpy-polars/tests/benchmark/data/__init__.py3CODE
LOWpy-polars/tests/benchmark/data/h2oai/__init__.py3CODE
LOWpy-polars/tests/unit/conftest.py1CODE
LOWpy-polars/tests/unit/test_schema.py1CODE
LOWpy-polars/tests/unit/series/test_to_list.py1CODE
LOWpy-polars/tests/unit/series/test_getitem.py1CODE
LOWpy-polars/tests/unit/series/test_item.py1CODE
LOWpy-polars/tests/unit/series/test_contains.py1CODE
LOWpy-polars/tests/unit/series/test_all_any.py1CODE
LOWpy-polars/tests/unit/series/test_series.py1CODE
LOWpy-polars/tests/unit/dataframe/test_from_dict.py1CODE
LOWpy-polars/tests/unit/dataframe/test_df.py1CODE
LOWpy-polars/tests/unit/dataframe/test_upsample.py1CODE
LOWpy-polars/tests/unit/dataframe/test_describe.py1CODE
LOWpy-polars/tests/unit/dataframe/test_null_count.py1CODE
LOWpy-polars/tests/unit/dataframe/test_getitem.py1CODE
LOWpy-polars/tests/unit/dataframe/test_glimpse.py1CODE
LOWpy-polars/tests/unit/dataframe/test_repr.py1CODE
LOWpy-polars/tests/unit/dataframe/test_item.py1CODE
LOWpy-polars/tests/unit/dataframe/test_to_dict.py1CODE
LOWpy-polars/tests/unit/dataframe/test_serde.py1CODE
LOWpy-polars/tests/unit/datatypes/test_duration.py1CODE
LOWpy-polars/tests/unit/datatypes/test_utils.py1CODE
LOWpy-polars/tests/unit/datatypes/test_extension.py1CODE
LOWpy-polars/tests/unit/datatypes/test_list.py1CODE
LOWpy-polars/tests/unit/datatypes/test_datatypes.py1CODE
LOWpy-polars/tests/unit/datatypes/test_parse.py1CODE
LOWpy-polars/tests/unit/datatypes/test_decimal.py1CODE
LOWpy-polars/tests/unit/datatypes/test_temporal.py1CODE
LOWpy-polars/tests/unit/datatypes/test_categorical.py1CODE
LOWpy-polars/tests/unit/datatypes/test_struct.py1CODE
LOWpy-polars/tests/unit/datatypes/test_bool.py1CODE
LOWpy-polars/tests/unit/datatypes/test_null.py1CODE
LOWpy-polars/tests/unit/datatypes/test_categories.py1CODE
LOWpy-polars/tests/unit/datatypes/test_object.py1CODE
LOWpy-polars/tests/unit/datatypes/test_map.py1CODE
LOWpy-polars/tests/unit/datatypes/test_datatype_exprs.py1CODE
LOWpy-polars/tests/unit/datatypes/test_enum.py2CODE
LOWpy-polars/tests/unit/interop/test_arrow_stream_error.py3CODE
LOWpy-polars/tests/unit/interop/test_from_pandas.py1CODE
LOWpy-polars/tests/unit/interop/test_to_init_repr.py1CODE
LOWpy-polars/tests/unit/interop/test_to_init_repr.py3CODE
LOWpy-polars/tests/unit/interop/test_to_init_repr.py4CODE
LOWpy-polars/tests/unit/interop/test_roundtrip.py1CODE
LOWpy-polars/tests/unit/interop/test_interop.py1CODE
LOWpy-polars/tests/unit/interop/test_from_dataframe.py1CODE
LOWpy-polars/tests/unit/interop/test_to_pandas.py1CODE
LOWpy-polars/tests/unit/interop/numpy/test_to_numpy_df.py1CODE
LOWpy-polars/tests/unit/interop/numpy/test_ufunc_expr.py1CODE
LOW…-polars/tests/unit/interop/numpy/test_from_numpy_df.py1CODE
LOW…olars/tests/unit/interop/numpy/test_to_numpy_series.py1CODE
LOW…ars/tests/unit/interop/numpy/test_from_numpy_series.py1CODE
LOWpy-polars/tests/unit/io/test_ipc.py1CODE
LOWpy-polars/tests/unit/io/test_lazy_ipc.py1CODE
LOWpy-polars/tests/unit/io/test_lazy_ipc.py11CODE
1083 more matches not shown…
Decorative Section Separators215 hits · 692 pts
SeverityFileLineSnippetContext
MEDIUM⚡…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs358 // ┌──────►==◄─────┐ (current expr)COMMENT
MEDIUM⚡…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs366 // ┌──────┐ ┌──────┐ │COMMENT
MEDIUM⚡…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs368 // └──────┘ └──────┘COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs639 // ┌─────────────────────┬─────────────────────┬──────┐COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs643 // ╞═════════════════════╪═════════════════════╪══════╡COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs647 // └─────────────────────┴─────────────────────┴──────┘COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs661 // ┌─────────────────────────────────┬─────┬───────┐COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs665 // ╞═════════════════════════════════╪═════╪═══════╡COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs669 // └─────────────────────────────────┴─────┴───────┘COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs811 /// ╭────────┬────────╮COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs815 /// ╞════════╪════════╡COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs826 /// ╰────────┴────────╯COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs144//! ┌──────────┐ ┌─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs145//! │ "Bar" │ ───────────────▶│ 01 │COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs146//! └──────────┘ └─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs147//! ┌──────────┐ ┌─────┬─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs148//! │"Fabulous"│ ───────────────▶│ 01 │ 02 │COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs149//! └──────────┘ └─────┴─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs150//! ┌──────────┐ ┌─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs151//! │ "Soup" │ ───────────────▶│ 05 │COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs152//! └──────────┘ └─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs153//! ┌──────────┐ ┌─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs154//! │ "ZZ" │ ───────────────▶│ 07 │COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs155//! └──────────┘ └─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs162//! ┌─────┬─────┬─────┬─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs164//! └─────┴─────┴─────┴─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs166//! ┌─────┬─────┬─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs168//! └─────┴─────┴─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs170//! ┌─────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs172//! └─────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs188//! ┌───────┬────────────────────────┬───────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs190//! └───────┴────────────────────────┴───────┘COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs196//! ┌───────┬───────────────┬───────┬─────────┬───────┐COMMENT
MEDIUM⚡crates/polars-row/src/lib.rs198//! └───────┴───────────────┴───────┴─────────┴───────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs239//! └──── rows ────┘ └───────── row lengths ─────────┘ └─ count ─┘COMMENT
MEDIUM⚡crates/polars/src/docs/eager.rs371//! // ╭─────┬─────╮COMMENT
MEDIUM⚡crates/polars/src/docs/eager.rs375//! // ╞═════╪═════╡COMMENT
MEDIUM⚡crates/polars/src/docs/eager.rs379//! // ╰─────┴─────╯COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs60//! // ╭─────┬─────╮COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs64//! // ╞═════╪═════╡COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs66//! // ╰─────┴─────╯COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs90//! // ╭─────┬─────╮COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs94//! // ╞═════╪═════╡COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs98//! // ╰─────┴─────╯COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs148//! // ╭─────┬─────┬─────┬──────┬─────────╮COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs152//! // ╞═════╪═════╪═════╪══════╪═════════╡COMMENT
MEDIUM⚡crates/polars/src/docs/lazy.rs159//! // ╰─────┴─────┴─────┴──────┴─────────╯COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs218//! // ╭───────┬───────┬───────┬────────────╮COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs222//! // ╞═══════╪═══════╪═══════╪════════════╡COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs233//! // ╰───────┴───────┴───────┴────────────╯COMMENT
MEDIUM⚡py-polars/pyproject.toml236 # ------------------------------------------------------------------COMMENT
MEDIUM⚡py-polars/pyproject.toml238 # ------------------------------------------------------------------COMMENT
MEDIUM⚡py-polars/pyproject.toml242 # ------------------------------------------------------------------COMMENT
MEDIUMpy-polars/requirements-dev.txt14# ------------COMMENT
MEDIUMpy-polars/requirements-dev.txt16# ------------COMMENT
MEDIUMpy-polars/requirements-ci.txt1# -------------------------------------------------------COMMENT
MEDIUMpy-polars/requirements-ci.txt4# -------------------------------------------------------COMMENT
MEDIUM⚡py-polars/tests/unit/dataframe/test_from_dict.py28 # ┌─────┬─────┐COMMENT
MEDIUM⚡py-polars/tests/unit/dataframe/test_from_dict.py32 # ╞═════╪═════╡COMMENT
MEDIUM⚡py-polars/tests/unit/dataframe/test_from_dict.py35 # └─────┴─────┘COMMENT
155 more matches not shown…
Over-Commented Block722 hits · 671 pts
SeverityFileLineSnippetContext
LOWcrates/polars-buffer/src/buffer.rs1use std::ops::{Deref, Range, RangeBounds};COMMENT
LOWcrates/polars-buffer/src/buffer.rs21/// ```COMMENT
LOWcrates/polars-buffer/src/buffer.rs241 /// The first will contain all indices from `[0, mid)` (excludingCOMMENT
LOWcrates/polars-expr/src/reduce/mod.rs141/// A reduction with groups.COMMENT
LOWcrates/polars-expr/src/reduce/mod.rs181 group_idxs: &[IdxSize],COMMENT
LOWcrates/polars-expr/src/groups/mod.rs61 /// Returns for each key if it is found in the groupers. If invert is trueCOMMENT
LOWcrates/polars-expr/src/expressions/window.rs141 // so we use the original indices as idx values to arg_sort the original columnCOMMENT
LOWcrates/polars-expr/src/expressions/window.rs301 match (self.mapping, ac.agg_state()) {COMMENT
LOWcrates/polars-expr/src/expressions/window.rs441 }COMMENT
LOWcrates/polars-expr/src/expressions/window.rs461 // and explicit `list` aggregationsCOMMENT
LOWcrates/polars-expr/src/expressions/mod.rs141 /// 1. already aggregated as listCOMMENT
LOWcrates/polars-expr/src/expressions/mod.rs541 //COMMENT
LOWcrates/polars-expr/src/expressions/mod.rs921 })COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs561 // - Combination of AggregatedScalar and AggregatedList => NOT compatible.COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs581 // - ~ = same a smirror pair (symmetric)COMMENT
LOWcrates/polars-plan/src/bin/dsl-schema.rs1//! A tool for working with DSL schema.COMMENT
LOWcrates/polars-plan/src/plans/options.rs81 /// Say the schema is 'a', 'b' and there is a function `f`. In this case, `f('*')` can expandCOMMENT
LOWcrates/polars-plan/src/plans/options.rs101 /// mutually exclusive with `RETURNS_SCALAR`COMMENT
LOWcrates/polars-plan/src/plans/options.rs521 /// The match condition is `left == right` for every key pair, and, if there is aCOMMENT
LOWcrates/polars-plan/src/plans/schema.rs101 schema_right: &SchemaRef,COMMENT
LOWcrates/polars-plan/src/plans/parquet_footers.rs1//! Shared Parquet footer selection and reading.COMMENT
LOW…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs341 all_slice_ae_nodes_with_direct_col_input: &mut PlIndexSet<Node>,COMMENT
LOW…es/polars-plan/src/plans/optimizer/join_pushthrough.rs1//! Moving inner joins below the preserved side of a left/semi/anti join, pushing aCOMMENT
LOW…olars-plan/src/plans/optimizer/collapse_and_project.rs1use std::collections::BTreeSet;COMMENT
LOW…polars-plan/src/plans/optimizer/join_runtime_filter.rs1//! Let a hash join tell the parquet scan under its probe side which keys the buildCOMMENT
LOW…polars-plan/src/plans/optimizer/join_runtime_filter.rs21//! sides in this order.COMMENT
LOW…tes/polars-plan/src/plans/optimizer/expand_datasets.rs121}COMMENT
LOW…ars-plan/src/plans/optimizer/parquet_metadata_prune.rs1//! Prune `FileScanIR::Parquet`'s pre-decoded `metadata_per_source` toCOMMENT
LOW…ates/polars-plan/src/plans/optimizer/extract_window.rs1//! Moves `over` windows out of `Select`, `HStack` and `Filter` nodes into [`IR::Window`] nodes.COMMENT
LOW…ates/polars-plan/src/plans/optimizer/join_order/mod.rs1//! Join reordering.COMMENT
LOW…olars-plan/src/plans/optimizer/join_order/enumerate.rs1//! Choosing a join order.COMMENT
LOW…olars-plan/src/plans/optimizer/join_order/enumerate.rs201 });COMMENT
LOW…olars-plan/src/plans/optimizer/join_order/enumerate.rs321 fn dropped(&self, leaf: usize, identity: Option<DomainIdentity<'_>>, partner: usize) -> bool {COMMENT
LOW…/polars-plan/src/plans/optimizer/join_order/cluster.rs481 // Column projections commonly sit between joins. They preserve rows, so lookCOMMENT
LOW…/polars-plan/src/plans/optimizer/join_order/cluster.rs621 origins = readsCOMMENT
LOW…ars-plan/src/plans/optimizer/predicate_pushdown/mod.rs241COMMENT
LOW…ars-plan/src/plans/optimizer/predicate_pushdown/mod.rs261 use IR::*;COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs1001COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs1141 //COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs81// # ExampleCOMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs101// | |COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs121// |COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs321 } else {COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs341 // by predicate pushdown. We probe this on copies of the subplans that have only *this*COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs441 lp_arena.replace(node, lp);COMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs301// binary: +COMMENT
LOWcrates/polars-plan/src/plans/python/pyarrow.rs481 ..COMMENT
LOWcrates/polars-plan/src/plans/ir/mod.rs141 schema: SchemaRef,COMMENT
LOWcrates/polars-plan/src/plans/visitor/mod.rs21 /// Stop the entire traversal immediately.COMMENT
LOW…ates/polars-plan/src/plans/conversion/convert_utils.rs1use super::*;COMMENT
LOW…lars-plan/src/plans/conversion/type_coercion/binary.rs621 expr_arena,COMMENT
LOW…lars-plan/src/plans/conversion/type_coercion/binary.rs641 // │ --- ┆ --- ┆ --- │COMMENT
LOW…es/polars-plan/src/plans/conversion/dsl_to_ir/scans.rs621/// Relative errorCOMMENT
LOWcrates/polars-plan/src/plans/aexpr/minterm_iter.rs1use polars_utils::arena::{Arena, Node};COMMENT
LOWcrates/polars-plan/src/plans/aexpr/determinism.rs1use polars_utils::idx_vec::UnitVec;COMMENT
LOWcrates/polars-plan/src/plans/aexpr/determinism.rs61/// values across calls for a fundamental reason: random draws, opaqueCOMMENT
LOWcrates/polars-plan/src/plans/aexpr/filter_constraint.rs1//! Combine per-column comparisons in an `AND` chain: spot impossible filtersCOMMENT
LOWcrates/polars-plan/src/plans/aexpr/filter_constraint.rs41// How a single conjunct in the `AND` chain was classified.COMMENT
LOWcrates/polars-plan/src/plans/aexpr/filter_constraint.rs61 // `is_in` on the column already drops its nulls, else kept verbatim.COMMENT
LOWcrates/polars-plan/src/plans/aexpr/filter_constraint.rs401 }COMMENT
662 more matches not shown…
Deep Nesting147 hits · 130 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/conftest.py147CODE
LOWpy-polars/tests/conftest.py232CODE
LOWpy-polars/tests/unit/datatypes/test_float.py149CODE
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py168CODE
LOWpy-polars/tests/unit/io/test_multiscan.py1736CODE
LOWpy-polars/tests/unit/io/database/conftest.py16CODE
LOWpy-polars/tests/unit/io/cloud/test_cloud.py769CODE
LOWpy-polars/tests/unit/meta/test_config.py608CODE
LOWpy-polars/tests/unit/meta/test_api.py129CODE
LOWpy-polars/tests/unit/operations/test_bitwise.py89CODE
LOWpy-polars/tests/unit/operations/test_ewm.py317CODE
LOW…polars/tests/unit/operations/test_row_encoding_sort.py37CODE
LOWpy-polars/tests/unit/operations/test_slice.py408CODE
LOWpy-polars/tests/unit/operations/test_inequality_join.py317CODE
LOW…-polars/tests/unit/operations/test_group_by_dynamic.py1253CODE
LOWpy-polars/tests/unit/operations/rolling/test_rolling.py489CODE
LOWpy-polars/tests/unit/streaming/test_streaming_sort.py281CODE
LOW…polars/tests/unit/functions/range/test_linear_space.py31CODE
LOWpy-polars/tests/unit/lazyframe/test_optimizations.py498CODE
LOWpy-polars/tests/unit/sql/test_correlated_subqueries.py683CODE
LOWpy-polars/src/polars/selectors.py274CODE
LOWpy-polars/src/polars/selectors.py1009CODE
LOWpy-polars/src/polars/selectors.py1199CODE
LOWpy-polars/src/polars/selectors.py359CODE
LOWpy-polars/src/polars/series/series.py10164CODE
LOWpy-polars/src/polars/series/series.py293CODE
LOWpy-polars/src/polars/series/series.py732CODE
LOWpy-polars/src/polars/series/series.py1039CODE
LOWpy-polars/src/polars/series/series.py1521CODE
LOWpy-polars/src/polars/series/series.py4922CODE
LOWpy-polars/src/polars/series/utils.py28CODE
LOWpy-polars/src/polars/_utils/slice.py83CODE
LOWpy-polars/src/polars/_utils/slice.py124CODE
LOWpy-polars/src/polars/_utils/various.py297CODE
LOWpy-polars/src/polars/_utils/various.py314CODE
LOWpy-polars/src/polars/_utils/various.py474CODE
LOWpy-polars/src/polars/_utils/various.py622CODE
LOWpy-polars/src/polars/_utils/deprecation.py312CODE
LOWpy-polars/src/polars/_utils/serde.py34CODE
LOWpy-polars/src/polars/_utils/getitem.py50CODE
LOWpy-polars/src/polars/_utils/getitem.py182CODE
LOWpy-polars/src/polars/_utils/getitem.py291CODE
LOWpy-polars/src/polars/_utils/udfs.py334CODE
LOWpy-polars/src/polars/_utils/udfs.py1263CODE
LOWpy-polars/src/polars/_utils/udfs.py367CODE
LOWpy-polars/src/polars/_utils/udfs.py440CODE
LOWpy-polars/src/polars/_utils/udfs.py717CODE
LOWpy-polars/src/polars/_utils/udfs.py740CODE
LOWpy-polars/src/polars/_utils/udfs.py974CODE
LOWpy-polars/src/polars/_utils/udfs.py1050CODE
LOWpy-polars/src/polars/_utils/udfs.py1152CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py191CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py262CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py141CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py286CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py340CODE
LOWpy-polars/src/polars/_utils/parse/expr.py21CODE
LOWpy-polars/src/polars/_utils/parse/expr.py158CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py288CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py338CODE
87 more matches not shown…
Modern Structural Boilerplate76 hits · 76 pts
SeverityFileLineSnippetContext
LOW…ntime/polars-runtime-64/_polars_runtime_64/__init__.py7__all__ = ["BUILD_FEATURE_FLAGS"]CODE
LOW…lars-runtime-compat/_polars_runtime_compat/__init__.py7__all__ = ["BUILD_FEATURE_FLAGS"]CODE
LOW…olars/runtime/template/_polars_runtime_mod/__init__.py7__all__ = ["BUILD_FEATURE_FLAGS"]CODE
LOW…ntime/polars-runtime-32/_polars_runtime_32/__init__.py7__all__ = ["BUILD_FEATURE_FLAGS"]CODE
LOWpy-polars/tests/benchmark/data/__init__.py5__all__ = [CODE
LOWpy-polars/tests/benchmark/data/h2oai/__init__.py5__all__ = ["generate_group_by_data"]CODE
LOWpy-polars/tests/benchmark/data/h2oai/datagen_groupby.py30__all__ = ["generate_group_by_data"]CODE
LOWpy-polars/tests/unit/interop/test_from_pandas.py339def _set_pyarrow_unavailable(plmonkeypatch: PlMonkeyPatch) -> None:CODE
LOW…polars/tests/unit/io/cloud/test_credential_provider.py535def _set_default_credentials(tmp_path: Path, plmonkeypatch: PlMonkeyPatch) -> None:STRING
LOWpy-polars/tests/unit/sql/__init__.py5__all__ = ["assert_sql_matches"]CODE
LOWpy-polars/tests/unit/sql/asserts.py223__all__ = ["assert_sql_matches"]CODE
LOWpy-polars/src/polars/plugins.py21__all__ = ["register_plugin_function"]CODE
LOW⚡py-polars/src/polars/config.py109def _set_default_credential_provider(provider: Any) -> None:CODE
LOWpy-polars/src/polars/config.py37__all__ = ["Config"]CODE
LOWpy-polars/src/polars/config.py374 def _set_config_params(self, **options: Unpack[ConfigParameters]) -> None:CODE
LOWpy-polars/src/polars/_typing.py487__all__ = [CODE
LOWpy-polars/src/polars/_dependencies.py316__all__ = [CODE
LOWpy-polars/src/polars/__init__.py289__all__ = [CODE
LOWpy-polars/src/polars/selectors.py50__all__ = [CODE
LOWpy-polars/src/polars/string_cache.py13__all__ = [CODE
LOWpy-polars/src/polars/api.py16__all__ = [CODE
LOWpy-polars/src/polars/exceptions.py229__all__ = [CODE
LOWpy-polars/src/polars/_reexport.py12__all__ = [CODE
LOWpy-polars/src/polars/schema.py48__all__ = ["Schema"]CODE
LOWpy-polars/src/polars/series/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/_utils/deprecation.py367__all__ = [CODE
LOWpy-polars/src/polars/_utils/__init__.py20__all__ = [CODE
LOWpy-polars/src/polars/_utils/getitem.py36__all__ = [CODE
LOWpy-polars/src/polars/_utils/udfs.py1348__all__ = ["BytecodeParser", "warn_on_inefficient_map"]CODE
LOWpy-polars/src/polars/_utils/parse/__init__.py8__all__ = [CODE
LOWpy-polars/src/polars/_utils/construction/__init__.py25__all__ = [CODE
LOWpy-polars/src/polars/dataframe/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/datatype_expr/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/datatypes/constructor.py81def _set_numpy_to_constructor() -> None:CODE
LOWpy-polars/src/polars/datatypes/__init__.py69__all__ = [CODE
LOWpy-polars/src/polars/catalog/unity/__init__.py11__all__ = [CODE
LOWpy-polars/src/polars/io/__init__.py33__all__ = [CODE
LOWpy-polars/src/polars/io/arrow_c_stream.py17__all__ = ["scan_arrow_c_stream"]CODE
LOWpy-polars/src/polars/io/delta/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/database/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/pyarrow_dataset/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/spreadsheet/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/lance/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/iceberg/__init__.py4__all__ = [CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py1205 def _update_schema(self, transaction: Transaction) -> None:CODE
LOWpy-polars/src/polars/io/json/__init__.py3__all__ = ["read_json"]CODE
LOWpy-polars/src/polars/io/external_reader/__init__.py9__all__ = [CODE
LOWpy-polars/src/polars/io/scan_options/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/csv/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/cloud/__init__.py10__all__ = [CODE
LOW…rs/src/polars/io/cloud/credential_provider/__init__.py10__all__ = [CODE
LOWpy-polars/src/polars/io/ipc/__init__.py3__all__ = [CODE
LOWpy-polars/src/polars/io/parquet/__init__.py10__all__ = [CODE
LOWpy-polars/src/polars/interchange/__init__.py5__all__ = ["CompatLevel"]CODE
LOWpy-polars/src/polars/meta/__init__.py8__all__ = [CODE
LOWpy-polars/src/polars/expr/__init__.py4__all__ = [CODE
LOWpy-polars/src/polars/testing/__init__.py9__all__ = [CODE
LOWpy-polars/src/polars/testing/asserts/__init__.py8__all__ = [CODE
LOWpy-polars/src/polars/testing/parametric/__init__.py19__all__ = [CODE
LOWpy-polars/src/polars/testing/parametric/profiles.py74def set_profile(profile: ParametricProfileNames | int) -> None:CODE
16 more matches not shown…
AI Structural Patterns77 hits · 69 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py873CODE
LOWpy-polars/src/polars/plugins.py24CODE
LOWpy-polars/src/polars/series/series.py9606CODE
LOWpy-polars/src/polars/series/series.py9691CODE
LOWpy-polars/src/polars/series/datetime.py2145CODE
LOWpy-polars/src/polars/dataframe/frame.py379CODE
LOWpy-polars/src/polars/dataframe/frame.py3052CODE
LOWpy-polars/src/polars/dataframe/frame.py3078CODE
LOWpy-polars/src/polars/dataframe/frame.py3111CODE
LOWpy-polars/src/polars/dataframe/frame.py3376CODE
LOWpy-polars/src/polars/dataframe/frame.py4197CODE
LOWpy-polars/src/polars/dataframe/frame.py7954CODE
LOWpy-polars/src/polars/dataframe/frame.py8327CODE
LOWpy-polars/src/polars/dataframe/frame.py9709CODE
LOWpy-polars/src/polars/dataframe/frame.py13075CODE
LOWpy-polars/src/polars/io/lines.py27CODE
LOWpy-polars/src/polars/io/lines.py129CODE
LOWpy-polars/src/polars/io/ndjson.py44CODE
LOWpy-polars/src/polars/io/ndjson.py221CODE
LOWpy-polars/src/polars/io/database/functions.py313CODE
LOWpy-polars/src/polars/io/database/functions.py329CODE
LOWpy-polars/src/polars/io/database/functions.py344CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py114CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py135CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py156CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py179CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py200CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py221CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py255CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py439CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py456CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py473CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py490CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py507CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py524CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py540CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py651CODE
LOWpy-polars/src/polars/io/spreadsheet/_write_utils.py341CODE
LOWpy-polars/src/polars/io/spreadsheet/_utils.py12CODE
LOWpy-polars/src/polars/io/iceberg/functions.py29CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py985CODE
LOWpy-polars/src/polars/io/csv/functions.py74CODE
LOWpy-polars/src/polars/io/csv/functions.py559CODE
LOWpy-polars/src/polars/io/ipc/functions.py388CODE
LOWpy-polars/src/polars/io/parquet/functions.py87CODE
LOWpy-polars/src/polars/io/parquet/functions.py520CODE
LOWpy-polars/src/polars/expr/datetime.py403CODE
LOWpy-polars/src/polars/expr/expr.py11790CODE
LOWpy-polars/src/polars/expr/expr.py11887CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py53CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py237CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py257CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py297CODE
LOWpy-polars/src/polars/functions/as_datatype.py284CODE
LOWpy-polars/src/polars/lazyframe/opt_flags.py29CODE
LOWpy-polars/src/polars/lazyframe/opt_flags.py78CODE
LOWpy-polars/src/polars/lazyframe/opt_flags.py121CODE
LOWpy-polars/src/polars/lazyframe/frame.py364CODE
LOWpy-polars/src/polars/lazyframe/frame.py1395CODE
LOWpy-polars/src/polars/lazyframe/frame.py1409CODE
17 more matches not shown…
Excessive Try-Catch Wrapping66 hits · 68 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/conftest.py78 except Exception as exc:CODE
LOWpy-polars/tests/conftest.py141 except Exception as exc:CODE
LOWpy-polars/tests/unit/datatypes/test_map.py413 except Exception as e:CODE
LOWpy-polars/tests/unit/io/test_skip_batch_predicate.py242 except Exception as _:CODE
LOWpy-polars/tests/unit/io/test_skip_batch_predicate.py275 except Exception as _:CODE
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py217 except Exception:CODE
LOWpy-polars/tests/unit/io/test_lance.py107 except Exception as exc:CODE
LOWpy-polars/tests/unit/io/test_lance.py205 except Exception as exc:CODE
LOWpy-polars/tests/unit/io/test_multiscan.py227 except Exception as _:CODE
LOWpy-polars/tests/unit/meta/test_api.py139 except Exception:CODE
LOWpy-polars/tests/unit/constructors/test_dataframe.py326 except Exception as exc:CODE
LOWpy-polars/src/polars/_cpu_check.py66 except Exception:CODE
LOWpy-polars/src/polars/series/utils.py238 except Exception:CODE
LOWpy-polars/src/polars/datatypes/convert.py362 except Exception:CODE
LOWpy-polars/src/polars/catalog/unity/client.py661 except Exception as e:CODE
LOWpy-polars/src/polars/io/plugins.py139 except Exception as e:CODE
LOWpy-polars/src/polars/io/delta/_utils.py230 except Exception as e:CODE
LOWpy-polars/src/polars/io/database/_executor.py272 except Exception as err:CODE
LOWpy-polars/src/polars/io/lance/_scan_resolver.py139 except Exception:CODE
LOWpy-polars/src/polars/io/lance/_scan_resolver.py263 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_cache.py175 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_cache.py227 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_plugin.py84 except Exception as e:CODE
LOWpy-polars/src/polars/io/iceberg/_dataset.py261 except Exception as error:CODE
LOWpy-polars/src/polars/io/iceberg/_dataset.py1039 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py99 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py231 except Exception as e:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py234 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py1150 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py1538 except Exception as error:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py1544 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py1604 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py1608 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py235 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py461 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py634 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py972 except Exception as e:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py1129 except Exception as e:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py1488 except Exception as e:CODE
LOW…rs/src/polars/io/cloud/credential_provider/_builder.py221 except Exception as e:CODE
LOW…/src/polars/io/cloud/credential_provider/_providers.py479 except Exception as e:CODE
LOW…/src/polars/io/cloud/credential_provider/_providers.py544 except Exception:CODE
MEDIUM…/src/polars/io/cloud/credential_provider/_providers.py541def _azcli_version(cls) -> str | None:CODE
LOWpy-polars/src/polars/meta/versions.py141 except Exception:CODE
MEDIUMpy-polars/src/polars/lazyframe/frame.py821def _repr_html_(self) -> str:CODE
LOWpy-polars/src/polars/lazyframe/frame.py831 except Exception:STRING
LOW⚡py-polars/src/polars/sql/context.py1679 except Exception:CODE
LOW⚡py-polars/src/polars/sql/context.py1689 except Exception:CODE
LOW⚡py-polars/src/polars/sql/context.py1699 except Exception:CODE
LOWpy-polars/src/polars/sql/context.py959 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py982 except Exception:CODE
LOWpy-polars/src/polars/sql/context.py996 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1022 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1036 except Exception:CODE
LOWpy-polars/src/polars/sql/context.py1055 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1182 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1244 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1404 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1432 except Exception as error:CODE
LOWpy-polars/src/polars/sql/context.py1465 except Exception as error:CODE
6 more matches not shown…
AI Slop Vocabulary20 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMcrates/polars-expr/src/expressions/structeval.rs305 // elementwise top-level and not fallible. We leverage the reference dispatch for ApplyExpr,COMMENT
MEDIUM…polars-plan/src/plans/aexpr/predicates/skip_batches.rs914 // Essentially, what this does isCOMMENT
MEDIUMcrates/polars-core/src/series/arithmetic/list.rs275 // * Essentially as if the NULL primitive was added to every primitive in the row of the list column.COMMENT
MEDIUMcrates/polars-core/src/chunked_array/mod.rs124/// When multiplying two [`ChunkedArray`]s with different chunk sizes they cannot utilize [SIMD](https://en.wikipedia.orCOMMENT
MEDIUMcrates/polars-core/src/chunked_array/logical/time.rs12 // Invalid time values are replaced with `null` during the arrow cast. We utilize theCOMMENT
MEDIUMcrates/polars-core/src/frame/column/mod.rs753 // We utilize the aggregation on Series to see:COMMENT
MEDIUMcrates/polars-arrow/src/array/mod.rs548 /// This is an API to leverage clone-on-writeCOMMENT
MEDIUMcrates/polars-arrow/src/array/utf8/mutable.rs222 /// This is an API to leverage clone-on-writeCOMMENT
MEDIUMcrates/polars-arrow/src/array/utf8/mod.rs480 /// This is an API to leverage clone-on-writeCOMMENT
MEDIUMcrates/polars-io/src/parquet/read/read_impl.rs492 // faster. Essentially, it sees how many times it needs to switch betweenCOMMENT
MEDIUMcrates/polars-stream/src/nodes/joins/equi_join.rs1283 // TODO: implement something more re-usable and robust.COMMENT
MEDIUMcrates/polars/tests/it/io/parquet/read/mod.rs3/// In comparison to Arrow, this in-memory format does not leverage logical types nor SIMD operations,COMMENT
MEDIUMpy-polars/tests/unit/io/test_spreadsheet.py629 # read multiple sheets in conjunction with 'schema_overrides'COMMENT
MEDIUMpy-polars/tests/unit/io/test_delta_deletion_vector.py30# explicitly not comprehensive and should be used with care.COMMENT
MEDIUM…ests/unit/operations/namespaces/temporal/test_round.py122 # Definitely uses slowpath:COMMENT
MEDIUM…s/unit/operations/namespaces/temporal/test_truncate.py120 # Definitely uses slowpath:COMMENT
MEDIUM⚡…/tests/unit/testing/parametric/strategies/test_core.py283 # ensure dtype constraint works in conjunction with 'n' colsCOMMENT
MEDIUMpy-polars/tests/unit/constructors/test_constructors.py247 # in conjunction with full 'columns' override (rename/downcast)COMMENT
MEDIUMpy-polars/src/polars/_utils/construction/series.py366 # # Essentially, when given a [0, u64::MAX] then it would Overflow.COMMENT
MEDIUMpy-polars/src/polars/io/spreadsheet/_write_utils.py239 """Insert dummy frame columns in order to create empty/named table columns."""STRING
Empty Error Handlers10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHpy-polars/tests/unit/series/test_series.py620except ModuleNotFoundError:CODE
HIGHpy-polars/tests/unit/io/test_skip_batch_predicate.py242except Exception as _:CODE
HIGHpy-polars/tests/unit/io/test_delta_deletion_vector.py217except Exception:CODE
HIGHpy-polars/src/polars/_plr.py92except ImportError:CODE
HIGHpy-polars/src/polars/datatypes/constructor.py17except ImportError:CODE
HIGHpy-polars/src/polars/datatypes/convert.py312except ValueError:CODE
HIGHpy-polars/src/polars/io/lance/_reader.py345except ThreadPoolSubmitError:CODE
HIGHpy-polars/src/polars/io/iceberg/_sink.py1602except NoSuchTableError:CODE
HIGHpy-polars/src/polars/io/iceberg/_sink.py1154except NoSuchTableError:CODE
HIGHpy-polars/src/polars/io/iceberg/_utils.py634except Exception:CODE
Self-Referential Comments14 hits · 41 pts
SeverityFileLineSnippetContext
MEDIUMpy-polars/tests/unit/datatypes/test_list.py117 # Create a left relation where the join column contains a null value.COMMENT
MEDIUMpy-polars/tests/unit/datatypes/test_list.py123 # Create a right relation where there is a column to count distinct on.COMMENT
MEDIUMpy-polars/tests/unit/datatypes/test_temporal.py2513 # Create a Series where the null value is backed by a value which wouldCOMMENT
MEDIUM⚡py-polars/tests/unit/interop/test_interop.py475 # Create a pyarrow table with a list[null] column.COMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py450 # Create an enum / categorical / dictionary typed pyarrow arrayCOMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py984 # Create a dataset with 3 rowsSTRING
MEDIUMpy-polars/tests/unit/io/test_parquet.py140 # Create a dataframe with 3 chunks. The values have to differ: concatenatingCOMMENT
MEDIUMpy-polars/tests/unit/io/test_delta_deletion_vector.py28# This file contains temporary homegrown logic with the sole purpose of generatingCOMMENT
MEDIUM…s/unit/operations/namespaces/temporal/test_datetime.py660 # Define a DataFrame with columns for datetime, date, and timeCOMMENT
MEDIUMpy-polars/tests/unit/sql/test_set_ops.py215 # Create a context and register the tablesCOMMENT
MEDIUMpy-polars/src/polars/_plr.py1# This module represents the Rust API functions exposed to Python through PyO3. We do aCOMMENT
MEDIUM…ython/user-guide/expressions/user-defined-functions.py108 # Create a struct that has two columns in it:COMMENT
MEDIUM.github/workflows/release-polars-iceberg.yml23 # Create the sdist and build the wheels, but do not publish to PyPI.COMMENT
MEDIUM.github/workflows/release-python.yml10 # Create the sdist and build the wheels, but do not publish to PyPI / GitHub.COMMENT
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH…stream/src/nodes/io_sources/ipc/record_batch_decode.rs35 // Rows as requested, relative to the start of the Record Batch.COMMENT
HIGHdocs/source/development/contributing/index.md318- If your contribution contains code generated by AI you **must**:CODE
Fake / Example Data8 hits · 12 pts
SeverityFileLineSnippetContext
LOW⚡crates/polars/tests/it/io/csv.rs418-86.64408227,"Lorem Ipsum is simply dummy text of the printing and typesettingCODE
LOW⚡crates/polars/tests/it/io/csv.rs419industry. Lorem Ipsum has been the industry's standard dummy text ever since thCODE
LOW⚡crates/polars/tests/it/io/csv.rs423in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,CODE
LOW⚡crates/polars/tests/it/io/csv.rs425versions of Lorem Ipsum.",11CODE
LOW⚡crates/polars/tests/it/io/csv.rs436 r#"Lorem Ipsum is simply dummy text of the printing and typesettingCODE
LOW⚡crates/polars/tests/it/io/csv.rs437industry. Lorem Ipsum has been the industry's standard dummy text ever since thCODE
LOW⚡crates/polars/tests/it/io/csv.rs441in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,CODE
LOW⚡crates/polars/tests/it/io/csv.rs443versions of Lorem Ipsum."#,CODE
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py279 # Set statistics to pre-deletion-vector valuesCOMMENT
LOWpy-polars/tests/unit/operations/test_is_in.py261 # Check if empty list is converted to pl.StringCOMMENT
LOW…rs/tests/unit/operations/arithmetic/test_arithmetic.py408 # Check if fused is turned off for literals see: #9857COMMENT
LOWpy-polars/tests/unit/lazyframe/test_cse.py905 # Check if output is stableCOMMENT
LOWpy-polars/tests/docs/run_doctest.py116 # Set doctests to fail on warningsCOMMENT
LOWpy-polars/src/polars/_utils/various.py151 # Check if an object is a sequence of `tp`, only sniffing the first element.COMMENT
LOWdocs/source/_build/scripts/macro.py182 # Check if file exists for the languageCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…-polars/tests/unit/operations/arithmetic/test_array.py368 # checking the dimension. In this example both arrays have the leaf stride asCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/polars-stream/src/nodes/joins/equi_join.rs1283 // TODO: implement something more re-usable and robust.COMMENT
LOWcrates/polars-sql/src/functions.rs1378 // TODO: implement the following modifiers where possibleCOMMENT
LOWpy-polars/src/polars/series/series.py1458 # TODO: implement for these types without casting to seriesCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ts/unit/operations/map/test_inefficient_map_warning.py646 # make sure to keep the `^` and `$`, and the assertion on `len(warnings)`COMMENT
MEDIUM…le/derive_expression/expression_lib/src/expressions.rs205/// This expression is for demonstration purposes as we have a dedicatedCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpy-polars/tests/unit/interop/test_arrow_stream_error.py22CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/polars-io/src/path_utils/mod.rs316 // We need to check if it is a directory for local paths (we can be here dueCOMMENT