Repository Analysis

pola-rs/polars

Extremely fast Query Engine for DataFrames, written in Rust

8.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pola-rs/polars, a Rust project with 39,529 GitHub stars. SynthScan v2.0 examined 804,489 lines of code across 3113 source files, recording 5967 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 8.5 places this repository in the Low AI signal band.

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

8.5
Adjusted Score
8.5
Raw Score
100%
Time Factor
2026-08-28
Last Push
39.5K
Stars
Rust
Language
804.5K
Lines of Code
3.1K
Files
6.0K
Pattern Hits
2026-08-29
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 236MEDIUM 249LOW 5482

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

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

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

Hyper-Verbose Identifiers3465 hits · 3220 pts
SeverityFileLineSnippetContext
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
LOWpy-polars/tests/benchmark/interop/test_numpy.py44def test_to_numpy_series_zero_copy(floats: pl.Series) -> None:CODE
LOWpy-polars/tests/benchmark/interop/test_numpy.py48def test_to_numpy_series_with_nulls(floats_with_nulls: pl.Series) -> None:CODE
LOWpy-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
LOWpy-polars/tests/unit/test_schema.py6def test_contains_dtype_top_level() -> None:CODE
LOWpy-polars/tests/unit/test_schema.py12def test_contains_dtype_recursive_nested() -> None:CODE
LOWpy-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
LOWpy-polars/tests/unit/series/test_getitem.py73def test_series_getitem_empty_inputs(input: Any) -> None:CODE
LOWpy-polars/tests/unit/series/test_getitem.py81def test_series_getitem_multiple_indices(indices: Any) -> None:CODE
LOWpy-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
LOWpy-polars/tests/unit/series/test_rolling.py29def test_series_rolling_min_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py35def test_series_rolling_max_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py41def test_series_rolling_sum_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py47def test_series_rolling_mean_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py82def test_series_rolling_rank_by_with_nulls(CODE
LOWpy-polars/tests/unit/series/test_rolling.py91def test_series_rolling_quantile_by_with_nulls(CODE
LOWpy-polars/tests/unit/series/test_rolling.py100def test_series_rolling_median_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py106def test_series_rolling_std_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py112def test_series_rolling_var_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py118def test_series_rolling_quantile_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py124def test_series_rolling_rank_by(values: pl.Series, by_col: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py130def test_series_rolling_min_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py138def test_series_rolling_max_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py146def test_series_rolling_sum_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py154def test_series_rolling_mean_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py162def test_series_rolling_median_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py170def test_series_rolling_std_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py178def test_series_rolling_var_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py186def test_series_rolling_quantile_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py194def test_series_rolling_rank_by_temporal(CODE
LOWpy-polars/tests/unit/series/test_rolling.py202def test_series_rolling_mean_by_null_by_single() -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py210def test_series_rolling_mean_by_null_by_all() -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py218def test_series_rolling_mean_by_null_by_unsorted() -> None:CODE
LOWpy-polars/tests/unit/series/test_rolling.py226def test_series_rolling_mean_by_null_by_and_values() -> None:CODE
LOWpy-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
LOWpy-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
LOWpy-polars/tests/unit/series/test_zip_with.py35def test_zip_with_series_comparison() -> None:CODE
LOWpy-polars/tests/unit/series/test_zip_with.py44def test_zip_with_null_values() -> None:CODE
LOWpy-polars/tests/unit/series/test_zip_with.py54def test_zip_with_length_mismatch() -> None:CODE
LOWpy-polars/tests/unit/series/test_zip_with.py63def test_zip_with_bad_input_type() -> None:CODE
LOWpy-polars/tests/unit/series/test_item.py22def test_series_item_incorrect_shape() -> None:CODE
LOWpy-polars/tests/unit/series/test_item.py34def test_series_item_with_index(index: int, expected: int, s: pl.Series) -> None:CODE
3405 more matches not shown…
Cross-Language Confusion233 hits · 1041 pts
SeverityFileLineSnippetContext
HIGHpy-polars/tests/unit/series/test_equals.py16 assert s1.equals(s2) is TrueCODE
HIGHpy-polars/tests/unit/series/test_equals.py17 assert s1.equals(s2, check_dtypes=True) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py18 assert s1.equals(s2, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py30 assert s3.equals(s4) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py31 assert s3.equals(s4, check_dtypes=True) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py32 assert s3.equals(s4, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py39 s1.equals(pl.DataFrame(s2), check_names=False) # type: ignore[arg-type]CODE
HIGHpy-polars/tests/unit/series/test_equals.py45 s1.equals(pl.DataFrame(s2).lazy(), check_names=False) # type: ignore[arg-type]CODE
HIGHpy-polars/tests/unit/series/test_equals.py52 assert s5.equals(DummySeriesSubclass(s5)) is TrueCODE
HIGHpy-polars/tests/unit/series/test_equals.py58 assert s1.equals(s2) is TrueCODE
HIGHpy-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.py2379 assert calculated.equals(expected)CODE
HIGHpy-polars/tests/unit/dataframe/test_df.py3331 assert df.equals(expected)CODE
HIGHpy-polars/tests/unit/dataframe/test_df.py3338 assert df.equals(expected)CODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py23 assert df1.equals(df1) is TrueCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py24 assert df1.equals(df2) is FalseCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py34 assert df1.equals(df3) is FalseCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py44 assert df.equals(df.with_columns(pl.col("foo").cast(pl.Int8))) is TrueCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py45 assert df.equals(df.with_columns(pl.col("ham").cast(pl.Categorical))) is TrueCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py48 assert df.equals(df) is TrueCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py49 assert df.equals(df, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py60 df1.equals(df2.lazy()) # type: ignore[arg-type]CODE
HIGHpy-polars/tests/unit/dataframe/test_equals.py66 df1.equals(pl.Series([1, 2, 3])) # type: ignore[arg-type]CODE
HIGHpy-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
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
HIGHpy-polars/tests/unit/interop/test_interop.py388 # Create a pyarrow table with a list[null] column.COMMENT
HIGHpy-polars/tests/unit/interop/test_interop.py1044 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.py3556 # every field is null, so groups with no null struct are skipped (#26239).STRING
HIGHpy-polars/tests/unit/io/test_delta.py1434 # null count, or it would wrongly skip the first file (`a` all-null, structs valid).STRING
HIGHpy-polars/tests/unit/io/test_delta.py1451 # 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.py1025assert [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
HIGHpy-polars/tests/unit/io/test_lazy_json.py316 "c": '{"y": null}',STRING
HIGHpy-polars/tests/unit/io/test_pyarrow_dataset.py336 assert "null," in captureCODE
HIGHpy-polars/tests/unit/io/test_json.py157 ([None, [0, 1]], '[{"a":null},{"a":[0,1]}]'),CODE
HIGHpy-polars/tests/unit/io/test_json.py158 ([[0, 1], None, [3, 3]], '[{"a":[0,1]},{"a":null},{"a":[3,3]}]'),CODE
HIGHpy-polars/tests/unit/io/test_json.py161 '[{"a":[0,1]},{"a":null},{"a":null},{"a":[7,7]}]',CODE
HIGHpy-polars/tests/unit/io/test_json.py163 ([None, None], '[{"a":null},{"a":null}]'),CODE
HIGHpy-polars/tests/unit/io/test_json.py176 ([None, [0, 1]], '{"a":null}\n{"a":[0,1]}\n'),CODE
HIGHpy-polars/tests/unit/io/test_json.py177 ([[0, 1], None, [3, 3]], '{"a":[0,1]}\n{"a":null}\n{"a":[3,3]}\n'),CODE
HIGHpy-polars/tests/unit/io/test_json.py178 ([None, None], '{"a":null}\n{"a":null}\n'),CODE
HIGHpy-polars/tests/unit/io/test_json.py260 assert out == '{"a":1,"b":"a"}\n{"a":2,"b":"b"}\n{"a":3,"b":null}\n'CODE
HIGHpy-polars/tests/unit/io/test_json.py407 {"id": 1, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py408 {"id": 2, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py409 {"id": 3, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py410 {"id": 4, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py628 {"a": null},CODE
HIGHpy-polars/tests/unit/io/test_json.py36 assert out == '[{"a":1,"b":"a"},{"a":2,"b":"b"},{"a":3,"b":null}]'CODE
HIGHpy-polars/tests/unit/io/test_json.py193 assert value == """[{"a":"1.00"},{"a":"2.00"},{"a":null}]"""CODE
173 more matches not shown…
Unused Imports1059 hits · 873 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_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_parquet.py1CODE
LOWpy-polars/tests/unit/io/test_sink.py1CODE
LOWpy-polars/tests/unit/io/test_utils.py1CODE
999 more matches not shown…
Decorative Section Separators211 hits · 682 pts
SeverityFileLineSnippetContext
MEDIUM…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs310 // ┌──────►==◄─────┐ (current expr)COMMENT
MEDIUM…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs318 // ┌──────┐ ┌──────┐ │COMMENT
MEDIUM…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs320 // └──────┘ └──────┘COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs570 // ┌─────────────────────┬─────────────────────┬──────┐COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs574 // ╞═════════════════════╪═════════════════════╪══════╡COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs578 // └─────────────────────┴─────────────────────┴──────┘COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs592 // ┌─────────────────────────────────┬─────┬───────┐COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs596 // ╞═════════════════════════════════╪═════╪═══════╡COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs600 // └─────────────────────────────────┴─────┴───────┘COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs795 /// ╭────────┬────────╮COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs799 /// ╞════════╪════════╡COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs810 /// ╰────────┴────────╯COMMENT
MEDIUMcrates/polars-row/src/lib.rs144//! ┌──────────┐ ┌─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs145//! │ "Bar" │ ───────────────▶│ 01 │COMMENT
MEDIUMcrates/polars-row/src/lib.rs146//! └──────────┘ └─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs147//! ┌──────────┐ ┌─────┬─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs148//! │"Fabulous"│ ───────────────▶│ 01 │ 02 │COMMENT
MEDIUMcrates/polars-row/src/lib.rs149//! └──────────┘ └─────┴─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs150//! ┌──────────┐ ┌─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs151//! │ "Soup" │ ───────────────▶│ 05 │COMMENT
MEDIUMcrates/polars-row/src/lib.rs152//! └──────────┘ └─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs153//! ┌──────────┐ ┌─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs154//! │ "ZZ" │ ───────────────▶│ 07 │COMMENT
MEDIUMcrates/polars-row/src/lib.rs155//! └──────────┘ └─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs162//! ┌─────┬─────┬─────┬─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs164//! └─────┴─────┴─────┴─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs166//! ┌─────┬─────┬─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs168//! └─────┴─────┴─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs170//! ┌─────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs172//! └─────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs188//! ┌───────┬────────────────────────┬───────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs190//! └───────┴────────────────────────┴───────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs196//! ┌───────┬───────────────┬───────┬─────────┬───────┐COMMENT
MEDIUMcrates/polars-row/src/lib.rs198//! └───────┴───────────────┴───────┴─────────┴───────┘COMMENT
MEDIUMcrates/polars-row/src/lib.rs239//! └──── rows ────┘ └───────── row lengths ─────────┘ └─ count ─┘COMMENT
MEDIUMcrates/polars/src/docs/eager.rs371//! // ╭─────┬─────╮COMMENT
MEDIUMcrates/polars/src/docs/eager.rs375//! // ╞═════╪═════╡COMMENT
MEDIUMcrates/polars/src/docs/eager.rs379//! // ╰─────┴─────╯COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs60//! // ╭─────┬─────╮COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs64//! // ╞═════╪═════╡COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs66//! // ╰─────┴─────╯COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs90//! // ╭─────┬─────╮COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs94//! // ╞═════╪═════╡COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs98//! // ╰─────┴─────╯COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs148//! // ╭─────┬─────┬─────┬──────┬─────────╮COMMENT
MEDIUMcrates/polars/src/docs/lazy.rs152//! // ╞═════╪═════╪═════╪══════╪═════════╡COMMENT
MEDIUMcrates/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
MEDIUMpy-polars/pyproject.toml231 # ------------------------------------------------------------------COMMENT
MEDIUMpy-polars/pyproject.toml233 # ------------------------------------------------------------------COMMENT
MEDIUMpy-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
MEDIUMpy-polars/tests/unit/dataframe/test_from_dict.py21 # ┌─────┬─────┐COMMENT
MEDIUMpy-polars/tests/unit/dataframe/test_from_dict.py25 # ╞═════╪═════╡COMMENT
MEDIUMpy-polars/tests/unit/dataframe/test_from_dict.py28 # └─────┴─────┘COMMENT
151 more matches not shown…
Over-Commented Block642 hits · 596 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.rs181 // SAFETY: invariant of this struct `offset + length <= data.len()`.COMMENT
LOWcrates/polars-buffer/src/buffer.rs241 /// the index `mid` itself) and the second will contain allCOMMENT
LOWcrates/polars-expr/src/hash_keys.rs201COMMENT
LOWcrates/polars-expr/src/expressions/window.rs141 // The example below shows the naive version without group tuple mappingCOMMENT
LOWcrates/polars-expr/src/expressions/window.rs341// Utility to create partitions and cache keysCOMMENT
LOWcrates/polars-expr/src/expressions/window.rs361 // Use a join for aggregations likeCOMMENT
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.rs721 /// Think of sort, slice, filter, shift, etc.COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs501 true => {COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs521COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs541 // | !has_rolling | has_rollingCOMMENT
LOWcrates/polars-mem-engine/src/scan_predicate/mod.rs21/// All the expressions and metadata used to filter out rows using predicates.COMMENT
LOWcrates/polars-plan/src/bin/dsl-schema.rs1//! A tool for working with DSL schema.COMMENT
LOWcrates/polars-plan/src/plans/options.rs61 })COMMENT
LOWcrates/polars-plan/src/plans/options.rs81 /// 1. `f('a', 'b')`COMMENT
LOWcrates/polars-plan/src/plans/options.rs101 /// This can happen with UDF's that use Polars within the UDF.COMMENT
LOWcrates/polars-plan/src/plans/options.rs401 /// Backwards/forwards/nearest match on a single key pair. The strategy, toleranceCOMMENT
LOW…polars-plan/src/plans/optimizer/slice_pushdown_expr.rs301 // We propagate upwards the position of the last non-elementwise node(s), these representCOMMENT
LOW…olars-plan/src/plans/optimizer/collapse_and_project.rs1use std::collections::BTreeSet;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/join_order/mod.rs1//! Join reordering.COMMENT
LOW…olars-plan/src/plans/optimizer/join_order/enumerate.rs1//! Choosing a join order.COMMENT
LOW…es/polars-plan/src/plans/optimizer/join_order/stats.rs1//! Row-count estimates for join ordering.COMMENT
LOW…es/polars-plan/src/plans/optimizer/join_order/stats.rs21const MIN_CARDINALITY: f64 = 1.0;COMMENT
LOW…es/polars-plan/src/plans/optimizer/join_order/stats.rs261}COMMENT
LOW…ars-plan/src/plans/optimizer/predicate_pushdown/mod.rs221 ) -> PolarsResult<IR> {COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs701COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs61 IR::SimpleProjection { .. } => true,COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs81// |COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs101// |COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs121// SUB-TREE SUB-TREECOMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs301 }COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs321 // without any benefit. See #19479.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/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.rs561 // Reject integer comparisons that compare as floats (e.g. Int64<>UInt64).COMMENT
LOW…lars-plan/src/plans/conversion/type_coercion/binary.rs581COMMENT
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 // Like `Bound`, but the conjunct was a negation normalized into positive formCOMMENT
LOWcrates/polars-plan/src/plans/aexpr/or_factoring.rs1//! OR factoring: `(A∧X) ∨ (A∧Y) → A ∧ (X∨Y)`COMMENT
LOWcrates/polars-plan/src/plans/aexpr/predicates/mod.rs61COMMENT
LOW…polars-plan/src/plans/aexpr/predicates/skip_batches.rs21use crate::plans::predicates::try_extract_is_in_haystack;COMMENT
LOW…ates/polars-plan/src/plans/aexpr/properties/general.rs201 /// e.g. non-strict castCOMMENT
LOWcrates/polars-plan/src/frame/opt_state.rs21 /// Run many type coercion optimization rules until fixed point.COMMENT
LOWcrates/polars-plan/src/frame/opt_state.rs41 /// Try to estimate the number of rows so that joins can determine which side to keep in memory.COMMENT
LOWcrates/polars-plan/src/dsl/arity.rs1#[cfg(feature = "serde")]COMMENT
LOWcrates/polars-plan/src/dsl/arity.rs101 // .when(col('x') == 'c').then(3)COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs361 ///COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs761COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs781 /// .select(&[COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs801 /// │ 1 ┆ 16 │COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs1021 Expr::Function {COMMENT
582 more matches not shown…
Deep Nesting126 hits · 118 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/conftest.py25CODE
LOWpy-polars/tests/conftest.py110CODE
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.py606CODE
LOWpy-polars/tests/unit/meta/test_api.py129CODE
LOWpy-polars/tests/unit/operations/test_bitwise.py89CODE
LOWpy-polars/tests/unit/operations/test_ewm.py303CODE
LOW…polars/tests/unit/operations/test_row_encoding_sort.py37CODE
LOWpy-polars/tests/unit/operations/test_slice.py404CODE
LOWpy-polars/tests/unit/operations/test_inequality_join.py312CODE
LOW…-polars/tests/unit/operations/test_group_by_dynamic.py1225CODE
LOW…polars/tests/unit/functions/range/test_linear_space.py31CODE
LOWpy-polars/tests/unit/lazyframe/test_optimizations.py352CODE
LOWpy-polars/src/polars/selectors.py273CODE
LOWpy-polars/src/polars/selectors.py1006CODE
LOWpy-polars/src/polars/selectors.py1196CODE
LOWpy-polars/src/polars/selectors.py358CODE
LOWpy-polars/src/polars/series/series.py9738CODE
LOWpy-polars/src/polars/series/series.py291CODE
LOWpy-polars/src/polars/series/series.py725CODE
LOWpy-polars/src/polars/series/series.py1029CODE
LOWpy-polars/src/polars/series/series.py1496CODE
LOWpy-polars/src/polars/series/series.py4659CODE
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.py345CODE
LOWpy-polars/src/polars/_utils/udfs.py1186CODE
LOWpy-polars/src/polars/_utils/udfs.py425CODE
LOWpy-polars/src/polars/_utils/udfs.py654CODE
LOWpy-polars/src/polars/_utils/udfs.py677CODE
LOWpy-polars/src/polars/_utils/udfs.py949CODE
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.py22CODE
LOWpy-polars/src/polars/_utils/parse/expr.py162CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py287CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py337CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py476CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py543CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py967CODE
LOWpy-polars/src/polars/_utils/construction/dataframe.py1213CODE
LOWpy-polars/src/polars/_utils/construction/series.py76CODE
LOWpy-polars/src/polars/_utils/construction/series.py447CODE
66 more matches not shown…
Modern Structural Boilerplate73 hits · 72 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.py353def _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.py209__all__ = ["assert_sql_matches"]CODE
LOWpy-polars/src/polars/plugins.py21__all__ = ["register_plugin_function"]CODE
LOWpy-polars/src/polars/config.py108def _set_default_credential_provider(provider: Any) -> None:CODE
LOWpy-polars/src/polars/config.py38__all__ = ["Config"]CODE
LOWpy-polars/src/polars/config.py373 def _set_config_params(self, **options: Unpack[ConfigParameters]) -> None:CODE
LOWpy-polars/src/polars/_typing.py474__all__ = [CODE
LOWpy-polars/src/polars/_dependencies.py314__all__ = [CODE
LOWpy-polars/src/polars/__init__.py282__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.py1266__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__.py68__all__ = [CODE
LOWpy-polars/src/polars/catalog/unity/__init__.py11__all__ = [CODE
LOWpy-polars/src/polars/io/__init__.py29__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/iceberg/__init__.py4__all__ = [CODE
LOWpy-polars/src/polars/io/iceberg/_sink.py142 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/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
LOW…s/src/polars/testing/parametric/strategies/__init__.py9__all__ = [CODE
LOWpy-polars/src/polars/ml/torch.py32__all__ = ["PolarsDataset"]CODE
13 more matches not shown…
AI Structural Patterns75 hits · 68 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py792CODE
LOWpy-polars/src/polars/plugins.py24CODE
LOWpy-polars/src/polars/series/series.py9278CODE
LOWpy-polars/src/polars/series/series.py9363CODE
LOWpy-polars/src/polars/series/datetime.py2142CODE
LOWpy-polars/src/polars/dataframe/frame.py376CODE
LOWpy-polars/src/polars/dataframe/frame.py2945CODE
LOWpy-polars/src/polars/dataframe/frame.py2971CODE
LOWpy-polars/src/polars/dataframe/frame.py3004CODE
LOWpy-polars/src/polars/dataframe/frame.py3270CODE
LOWpy-polars/src/polars/dataframe/frame.py4091CODE
LOWpy-polars/src/polars/dataframe/frame.py7819CODE
LOWpy-polars/src/polars/dataframe/frame.py8187CODE
LOWpy-polars/src/polars/dataframe/frame.py9569CODE
LOWpy-polars/src/polars/dataframe/frame.py12914CODE
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.py215CODE
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.py115CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py136CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py157CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py180CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py201CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py222CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py256CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py440CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py457CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py474CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py491CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py508CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py525CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py541CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py652CODE
LOWpy-polars/src/polars/io/spreadsheet/_write_utils.py341CODE
LOWpy-polars/src/polars/io/spreadsheet/_utils.py12CODE
LOWpy-polars/src/polars/io/csv/functions.py74CODE
LOWpy-polars/src/polars/io/csv/functions.py558CODE
LOWpy-polars/src/polars/io/csv/batched_reader.py19CODE
LOWpy-polars/src/polars/io/ipc/functions.py388CODE
LOWpy-polars/src/polars/io/parquet/functions.py85CODE
LOWpy-polars/src/polars/io/parquet/functions.py502CODE
LOWpy-polars/src/polars/expr/datetime.py403CODE
LOWpy-polars/src/polars/expr/expr.py11206CODE
LOWpy-polars/src/polars/expr/expr.py11303CODE
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.py282CODE
LOWpy-polars/src/polars/lazyframe/opt_flags.py29CODE
LOWpy-polars/src/polars/lazyframe/opt_flags.py76CODE
LOWpy-polars/src/polars/lazyframe/opt_flags.py117CODE
LOWpy-polars/src/polars/lazyframe/frame.py346CODE
LOWpy-polars/src/polars/lazyframe/frame.py1335CODE
LOWpy-polars/src/polars/lazyframe/frame.py1349CODE
LOWpy-polars/src/polars/lazyframe/frame.py1371CODE
15 more matches not shown…
AI Slop Vocabulary21 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMcrates/polars-expr/src/expressions/structeval.rs300 // elementwise top-level and not fallible. We leverage the reference dispatch for ApplyExpr,COMMENT
MEDIUM…polars-plan/src/plans/aexpr/predicates/skip_batches.rs746 // 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.rs123/// 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.rs761 // We utilize the aggregation on Series to see:COMMENT
MEDIUMcrates/polars-arrow/src/array/mod.rs547 /// 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.rs496 // faster. Essentially, it sees how many times it needs to switch betweenCOMMENT
MEDIUMcrates/polars-stream/src/nodes/joins/equi_join.rs1030 // 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.py253 # in conjunction with full 'columns' override (rename/downcast)COMMENT
MEDIUMpy-polars/src/polars/_utils/construction/series.py358 # # 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
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.py2359 # Create a Series where the null value is backed by a value which wouldCOMMENT
MEDIUMpy-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.py898 # Create a dataset with 3 rowsSTRING
MEDIUMpy-polars/tests/unit/io/test_parquet.py136 # Create a dataframe with 3 chunks:COMMENT
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
Excessive Try-Catch Wrapping24 hits · 25 pts
SeverityFileLineSnippetContext
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_multiscan.py226 except Exception as _:CODE
LOWpy-polars/tests/unit/meta/test_api.py139 except Exception:CODE
LOWpy-polars/src/polars/_cpu_check.py66 except Exception:CODE
LOWpy-polars/src/polars/series/utils.py230 except Exception:CODE
LOWpy-polars/src/polars/datatypes/convert.py353 except Exception:CODE
LOWpy-polars/src/polars/catalog/unity/client.py661 except Exception as e:CODE
LOWpy-polars/src/polars/io/plugins.py86 except Exception as e:CODE
LOWpy-polars/src/polars/io/database/_executor.py259 except Exception as err:CODE
LOWpy-polars/src/polars/io/iceberg/_dataset.py173 except Exception as error:CODE
LOWpy-polars/src/polars/io/iceberg/_utils.py445 except Exception as e:CODE
LOW…rs/src/polars/io/cloud/credential_provider/_builder.py220 except Exception as e:CODE
LOW…/src/polars/io/cloud/credential_provider/_providers.py443 except Exception as e:CODE
LOW…/src/polars/io/cloud/credential_provider/_providers.py508 except Exception:CODE
MEDIUM…/src/polars/io/cloud/credential_provider/_providers.py505def _azcli_version(cls) -> str | None:CODE
LOWpy-polars/src/polars/meta/versions.py130 except Exception:CODE
MEDIUMpy-polars/src/polars/lazyframe/frame.py748def _repr_html_(self) -> str:CODE
LOWpy-polars/src/polars/lazyframe/frame.py758 except Exception:STRING
LOWdocs/source/_build/scripts/people.py35 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
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGH…stream/src/nodes/io_sources/ipc/record_batch_decode.rs34 // 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
LOWcrates/polars/tests/it/io/csv.rs418-86.64408227,"Lorem Ipsum is simply dummy text of the printing and typesettingCODE
LOWcrates/polars/tests/it/io/csv.rs419industry. Lorem Ipsum has been the industry's standard dummy text ever since thCODE
LOWcrates/polars/tests/it/io/csv.rs423in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,CODE
LOWcrates/polars/tests/it/io/csv.rs425versions of Lorem Ipsum.",11CODE
LOWcrates/polars/tests/it/io/csv.rs436 r#"Lorem Ipsum is simply dummy text of the printing and typesettingCODE
LOWcrates/polars/tests/it/io/csv.rs437industry. Lorem Ipsum has been the industry's standard dummy text ever since thCODE
LOWcrates/polars/tests/it/io/csv.rs441in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,CODE
LOWcrates/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.py262 # Check if empty list is converted to pl.StringCOMMENT
LOW…rs/tests/unit/operations/arithmetic/test_arithmetic.py290 # 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.py183 # Check if file exists for the languageCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…-polars/tests/unit/operations/arithmetic/test_array.py367 # 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.rs1030 // TODO: implement something more re-usable and robust.COMMENT
LOWcrates/polars-sql/src/functions.rs1108 // TODO: implement the following modifiers where possibleCOMMENT
LOWpy-polars/src/polars/series/series.py1433 # TODO: implement for these types without casting to seriesCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…ts/unit/operations/map/test_inefficient_map_warning.py574 # 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