AI Slop Code RIsk Monitor

pola-rs/polars

Extremely fast Query Engine for DataFrames, written in Rust

9.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pola-rs/polars, a Rust project with 40,085 GitHub stars. SynthScan examined 896,137 lines of code across 3245 source files, recording 7437 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 9.0 (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.0
Adjusted Signal
9.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
40.1K
Stars
Rust
Language
896.1K
Lines of Code
3.2K
Files
7.4K
Pattern Hits
2026-10-12
Scan Date
0.09
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 24.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 11.4/100 · LOW

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

Agent Over-Engineering Ratio 24.4/100 · LOW

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

PR Review Velocity Impact 40.6/100 · MEDIUM

Which changes need focused human review? 7437 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 276MEDIUM 253LOW 6908

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 7437 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 Identifiers4772 hits · 4096 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_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.py93def 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
LOW⚡py-polars/tests/unit/series/test_zip_with.py44def test_zip_with_null_values() -> None:CODE
4712 more matches not shown…
Cross-Language Confusion266 hits · 1250 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.py2453 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.py381 assert s.equals(tz_s, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/datatypes/test_temporal.py382 assert s.equals(tz_s, null_equal=True) is FalseCODE
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.py388 # Create a pyarrow table with a list[null] column.COMMENT
HIGHpy-polars/tests/unit/interop/test_interop.py1043 assert df.equals(df_res)STRING
HIGHpy-polars/tests/unit/io/test_ipc.py121 assert pd_df.equals(pd_df_read)CODE
HIGHpy-polars/tests/unit/io/test_parquet.py3892 # every field is null, so groups with no null struct are skipped (#26239).STRING
HIGHpy-polars/tests/unit/io/test_delta.py1462 # null count, or it would wrongly skip the first file (`a` all-null, structs valid).STRING
HIGHpy-polars/tests/unit/io/test_delta.py1479 # Every struct is non-null, so all rows are kept; the first file (`a` all-null)STRING
HIGHpy-polars/tests/unit/io/test_lazy_parquet.py1027assert [x.equals(pl.DataFrame({"x": 1})) for x in results] == [STRING
HIGHpy-polars/tests/unit/io/test_lazy_json.py302{"a": {"x": 1}, "b": [1,2,3], "c": {"y": null}, "d": [{"k": "abc"}, {"j": "123"}, {"l": 7, "m": 8}]}CODE
206 more matches not shown…
Unused Imports1113 hits · 914 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_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
LOWpy-polars/tests/unit/io/test_parquet.py1CODE
1053 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.rs622 // ┌─────────────────────┬─────────────────────┬──────┐COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs626 // ╞═════════════════════╪═════════════════════╪══════╡COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs630 // └─────────────────────┴─────────────────────┴──────┘COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs644 // ┌─────────────────────────────────┬─────┬───────┐COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs648 // ╞═════════════════════════════════╪═════╪═══════╡COMMENT
MEDIUM⚡…lars-plan/src/plans/conversion/type_coercion/binary.rs652 // └─────────────────────────────────┴─────┴───────┘COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs809 /// ╭────────┬────────╮COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs813 /// ╞════════╪════════╡COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs824 /// ╰────────┴────────╯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.toml231 # ------------------------------------------------------------------COMMENT
MEDIUM⚡py-polars/pyproject.toml233 # ------------------------------------------------------------------COMMENT
MEDIUM⚡py-polars/pyproject.toml237 # ------------------------------------------------------------------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.py23 # ┌─────┬─────┐COMMENT
MEDIUM⚡py-polars/tests/unit/dataframe/test_from_dict.py27 # ╞═════╪═════╡COMMENT
MEDIUM⚡py-polars/tests/unit/dataframe/test_from_dict.py30 # └─────┴─────┘COMMENT
155 more matches not shown…
Over-Commented Block678 hits · 634 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/hash_keys.rs241 ///COMMENT
LOWcrates/polars-expr/src/reduce/mod.rs181 assert!(values.len() < (1 << (IdxSize::BITS - 1)));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 // `(col("x").sum() * col("y")).list().over("groups").flatten()`COMMENT
LOWcrates/polars-expr/src/expressions/window.rs441COMMENT
LOWcrates/polars-expr/src/expressions/window.rs501 let explicit_list_agg = self.is_explicit_list_agg();COMMENT
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.rs761COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs501 match self.flags.is_elementwise() {COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs521 // - A combination of AggregatedList(s) and NotAggregated(s) without expensive aggregation.COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs541 // (a) Multiple NotAggs, w/o AggListCOMMENT
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.rs501 args.hash(state);COMMENT
LOWcrates/polars-plan/src/plans/options.rs521 /// Only ever set on an inner join with a non-empty `on` and no attached slice.COMMENT
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.rs121COMMENT
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` and `HStack` 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…/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.rs241 /// * `IR` - Arena based logical plan tree representing the query.COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs921 // Right: | a | b | c |COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs1041 // Full-join rewritten to right-joinCOMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs81// Consider this tree, where `SUB-TREE` is duplicate and can be cached.COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs101// SUB-TREE SUB-TREECOMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs121// |COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs321 for (cache_id, v) in cache_schema_and_children.into_iter().rev() {COMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs261 let id = self.canonical_map.cached_id(node)?;COMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs281// |COMMENT
LOWcrates/polars-plan/src/plans/python/pyarrow.rs421///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 // shape: (3, 3)COMMENT
LOW…lars-plan/src/plans/conversion/type_coercion/binary.rs641 // ]COMMENT
LOW…es/polars-plan/src/plans/conversion/dsl_to_ir/scans.rs561 );COMMENT
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 // so the original conjunct is dropped.COMMENT
LOWcrates/polars-plan/src/plans/aexpr/filter_constraint.rs1201 right: node,COMMENT
LOWcrates/polars-plan/src/plans/aexpr/or_factoring.rs1//! OR factoring: `(A∧X) ∨ (A∧Y) → A ∧ (X∨Y)`, and its dualCOMMENT
LOWcrates/polars-plan/src/plans/aexpr/projection_height.rs81 &mut visitor,COMMENT
LOWcrates/polars-plan/src/plans/aexpr/predicates/mod.rs61COMMENT
618 more matches not shown…
Deep Nesting136 hits · 127 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.py167CODE
LOWpy-polars/tests/unit/io/database/conftest.py16CODE
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.py302CODE
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.py316CODE
LOW…-polars/tests/unit/operations/test_group_by_dynamic.py1253CODE
LOWpy-polars/tests/unit/streaming/test_streaming_sort.py280CODE
LOW…polars/tests/unit/functions/range/test_linear_space.py31CODE
LOWpy-polars/tests/unit/lazyframe/test_optimizations.py450CODE
LOWpy-polars/tests/unit/sql/test_correlated_subqueries.py600CODE
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.py10084CODE
LOWpy-polars/src/polars/series/series.py296CODE
LOWpy-polars/src/polars/series/series.py735CODE
LOWpy-polars/src/polars/series/series.py1039CODE
LOWpy-polars/src/polars/series/series.py1506CODE
LOWpy-polars/src/polars/series/series.py4907CODE
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.py302CODE
LOWpy-polars/src/polars/_utils/various.py319CODE
LOWpy-polars/src/polars/_utils/various.py479CODE
LOWpy-polars/src/polars/_utils/various.py627CODE
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.py351CODE
LOWpy-polars/src/polars/_utils/udfs.py1286CODE
LOWpy-polars/src/polars/_utils/udfs.py384CODE
LOWpy-polars/src/polars/_utils/udfs.py457CODE
LOWpy-polars/src/polars/_utils/udfs.py734CODE
LOWpy-polars/src/polars/_utils/udfs.py757CODE
LOWpy-polars/src/polars/_utils/udfs.py991CODE
LOWpy-polars/src/polars/_utils/udfs.py1067CODE
LOWpy-polars/src/polars/_utils/udfs.py1169CODE
LOWpy-polars/src/polars/_utils/udfs.py1237CODE
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.py287CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py337CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py483CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py552CODE
76 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.py537def _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.py115def _set_default_credential_provider(provider: Any) -> None:CODE
LOWpy-polars/src/polars/config.py43__all__ = ["Config"]CODE
LOWpy-polars/src/polars/config.py380 def _set_config_params(self, **options: Unpack[ConfigParameters]) -> None:CODE
LOWpy-polars/src/polars/_typing.py476__all__ = [CODE
LOWpy-polars/src/polars/_dependencies.py314__all__ = [CODE
LOWpy-polars/src/polars/__init__.py286__all__ = [CODE
LOWpy-polars/src/polars/selectors.py50__all__ = [CODE
LOWpy-polars/src/polars/string_cache.py18__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.py1371__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__.py31__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.py711 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__.py8__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 · 70 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py792CODE
LOWpy-polars/src/polars/plugins.py24CODE
LOWpy-polars/src/polars/series/series.py9530CODE
LOWpy-polars/src/polars/series/series.py9615CODE
LOWpy-polars/src/polars/series/datetime.py2145CODE
LOWpy-polars/src/polars/dataframe/frame.py379CODE
LOWpy-polars/src/polars/dataframe/frame.py2986CODE
LOWpy-polars/src/polars/dataframe/frame.py3012CODE
LOWpy-polars/src/polars/dataframe/frame.py3045CODE
LOWpy-polars/src/polars/dataframe/frame.py3310CODE
LOWpy-polars/src/polars/dataframe/frame.py4131CODE
LOWpy-polars/src/polars/dataframe/frame.py7863CODE
LOWpy-polars/src/polars/dataframe/frame.py8236CODE
LOWpy-polars/src/polars/dataframe/frame.py9616CODE
LOWpy-polars/src/polars/dataframe/frame.py12977CODE
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.py28CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py616CODE
LOWpy-polars/src/polars/io/csv/functions.py74CODE
LOWpy-polars/src/polars/io/csv/functions.py558CODE
LOWpy-polars/src/polars/io/ipc/functions.py388CODE
LOWpy-polars/src/polars/io/parquet/functions.py85CODE
LOWpy-polars/src/polars/io/parquet/functions.py504CODE
LOWpy-polars/src/polars/expr/datetime.py403CODE
LOWpy-polars/src/polars/expr/expr.py11742CODE
LOWpy-polars/src/polars/expr/expr.py11839CODE
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.py361CODE
LOWpy-polars/src/polars/lazyframe/frame.py1398CODE
LOWpy-polars/src/polars/lazyframe/frame.py1412CODE
17 more matches not shown…
AI Slop Vocabulary21 hits · 62 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.rs803 // Essentially, what this does isCOMMENT
MEDIUMcrates/polars-core/src/series/arithmetic/list.rs271 // * 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.rs750 // 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.rs1298 // 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.py29# 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.py254 # in conjunction with full 'columns' override (rename/downcast)COMMENT
MEDIUMpy-polars/src/polars/_utils/construction/series.py365 # # 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
MEDIUMpy-polars/src/polars/functions/col.py120 # note: using `co_qualname` is more robust; can additionallyCOMMENT
Excessive Try-Catch Wrapping38 hits · 39 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.py240 except Exception as _:CODE
LOWpy-polars/tests/unit/io/test_skip_batch_predicate.py273 except Exception as _:CODE
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py216 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.py330 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.py192 except Exception as e:CODE
LOWpy-polars/src/polars/io/database/_executor.py266 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.py153 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_dataset.py226 except Exception as error:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py125 except Exception as e:CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py128 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py184 except Exception:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py531 except Exception as e:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py623 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.py139 except Exception:CODE
MEDIUMpy-polars/src/polars/lazyframe/frame.py818def _repr_html_(self) -> str:CODE
LOWpy-polars/src/polars/lazyframe/frame.py828 except Exception:STRING
LOWdocs/source/_build/scripts/people.py34 except Exception as e:CODE
LOWdocs/source/src/python/user-guide/io/hive.py79except Exception as e:CODE
LOW…urce/src/python/user-guide/expressions/categoricals.py156except Exception as e:CODE
LOWdocs/source/src/python/user-guide/lazy/schema.py19except Exception as e:CODE
Self-Referential Comments13 hits · 38 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.py2382 # Create a Series where the null value is backed by a value which wouldCOMMENT
MEDIUM⚡py-polars/tests/unit/interop/test_interop.py388 # Create a pyarrow table with a list[null] column.COMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py363 # Create an enum / categorical / dictionary typed pyarrow arrayCOMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py897 # Create a dataset with 3 rowsSTRING
MEDIUMpy-polars/tests/unit/io/test_parquet.py139 # Create a dataframe with 3 chunks. The values have to differ: concatenatingCOMMENT
MEDIUMpy-polars/tests/unit/io/test_delta_deletion_vector.py27# This file contains temporary homegrown logic with the sole purpose of generatingCOMMENT
MEDIUM…s/unit/operations/namespaces/temporal/test_datetime.py606 # Define a DataFrame with columns for datetime, date, and timeCOMMENT
MEDIUMpy-polars/tests/unit/sql/test_set_ops.py213 # 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-python.yml10 # Create the sdist and build the wheels, but do not publish to PyPI / GitHub.COMMENT
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHpy-polars/tests/unit/series/test_series.py620except ModuleNotFoundError:CODE
HIGHpy-polars/tests/unit/io/test_skip_batch_predicate.py240except Exception as _:CODE
HIGHpy-polars/tests/unit/io/test_delta_deletion_vector.py216except 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
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.md307- 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.py260 # 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.py291 # 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.py156 # 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.rs1298 // TODO: implement something more re-usable and robust.COMMENT
LOWcrates/polars-sql/src/functions.rs1269 // TODO: implement the following modifiers where possibleCOMMENT
LOWpy-polars/src/polars/series/series.py1443 # 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.rs301 // We need to check if it is a directory for local paths (we can be here dueCOMMENT