Repository Analysis

pola-rs/polars

Extremely fast Query Engine for DataFrames, written in Rust

8.4 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,005 GitHub stars. SynthScan v2.0 examined 790,022 lines of code across 3160 source files, recording 5771 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 8.4 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.4
Adjusted Score
8.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
39.0K
Stars
Rust
Language
790.0K
Lines of Code
3.2K
Files
5.8K
Pattern Hits
2026-07-14
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

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

Score History

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 214MEDIUM 253LOW 5304

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 5771 distinct pattern matches across 21 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 Identifiers3254 hits · 3058 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.py64def test_series_rolling_by_with_nulls(CODE
LOWpy-polars/tests/unit/series/test_equals.py53def test_series_equals_check_names() -> None:CODE
LOWpy-polars/tests/unit/series/test_equals.py124def test_series_equals_strict_deprecated() -> 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
LOWpy-polars/tests/unit/series/test_item.py39def test_df_item_out_of_bounds(index: int, s: pl.Series) -> None:CODE
LOWpy-polars/tests/unit/series/test_item.py45def test_series_item_out_of_range_date() -> None:CODE
LOWpy-polars/tests/unit/series/test_extend.py46def test_extend_with_null_series() -> None:CODE
LOWpy-polars/tests/unit/series/test_series.py2238def test_series_getitem_out_of_bounds_positive() -> None:CODE
LOWpy-polars/tests/unit/series/test_series.py2246def test_series_getitem_out_of_bounds_negative() -> None:CODE
3194 more matches not shown…
Cross-Language Confusion210 hits · 935 pts
SeverityFileLineSnippetContext
HIGHpy-polars/tests/unit/series/test_equals.py14 assert s1.equals(s2) is TrueCODE
HIGHpy-polars/tests/unit/series/test_equals.py15 assert s1.equals(s2, check_dtypes=True) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py16 assert s1.equals(s2, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py28 assert s3.equals(s4) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py29 assert s3.equals(s4, check_dtypes=True) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py30 assert s3.equals(s4, null_equal=False) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py37 s1.equals(pl.DataFrame(s2), check_names=False) # type: ignore[arg-type]CODE
HIGHpy-polars/tests/unit/series/test_equals.py43 s1.equals(pl.DataFrame(s2).lazy(), check_names=False) # type: ignore[arg-type]CODE
HIGHpy-polars/tests/unit/series/test_equals.py50 assert s5.equals(DummySeriesSubclass(s5)) is TrueCODE
HIGHpy-polars/tests/unit/series/test_equals.py56 assert s1.equals(s2) is TrueCODE
HIGHpy-polars/tests/unit/series/test_equals.py57 assert s1.equals(s2, check_names=True) is FalseCODE
HIGHpy-polars/tests/unit/series/test_equals.py128 assert not s1.equals(s2, strict=True) # type: ignore[call-arg]CODE
HIGHpy-polars/tests/unit/series/test_equals.py321 assert s.equals(s)CODE
HIGHpy-polars/tests/unit/series/test_series.py2380 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.py52 $ d <str> null, 'b', 'c'STRING
HIGHpy-polars/tests/unit/dataframe/test_0_width_df.py10 assert df.equals(df)CODE
HIGHpy-polars/tests/unit/dataframe/test_0_width_df.py11 assert not df.equals(pl.DataFrame())CODE
HIGHpy-polars/tests/unit/datatypes/test_list.py868 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.py374 # Create a pyarrow table with a list[null] column.COMMENT
HIGHpy-polars/tests/unit/interop/test_interop.py1018 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.py3529 # every field is null, so groups with no null struct are skipped (#26239).STRING
HIGHpy-polars/tests/unit/io/test_delta.py1438 # null count, or it would wrongly skip the first file (`a` all-null, structs valid).STRING
HIGHpy-polars/tests/unit/io/test_delta.py1455 # 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.py1028assert [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.py226 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.py373 {"id": 1, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py374 {"id": 2, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py375 {"id": 3, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py376 {"id": 4, "zero_column": 0, "empty_array_column": [], "empty_object_column": {}, "null_column": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py594 {"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.py159 assert value == """[{"a":"1.00"},{"a":"2.00"},{"a":null}]"""CODE
HIGHpy-polars/tests/unit/io/test_json.py397 {"map": "a", "start_time": null, "end_time": null}CODE
HIGHpy-polars/tests/unit/io/test_json.py178 {"a": 5, "b": "foo", "c": null},STRING
HIGHpy-polars/tests/unit/io/test_json.py179 {"a": 11.4, "b": null, "c": true, "d": 8},STRING
HIGHpy-polars/tests/unit/io/test_json.py201 {"a": 5, "b": "foo", "c": null},STRING
HIGHpy-polars/tests/unit/io/test_json.py202 {"a": 11.4, "b": null, "c": true, "d": 8},STRING
HIGHpy-polars/tests/unit/io/test_json.py645 io.StringIO("""{"a":null,"b":null,"c":null}"""),STRING
HIGHpy-polars/tests/unit/io/test_csv.py1035 df.write_csv(f, null_value=null)STRING
150 more matches not shown…
Unused Imports1063 hits · 879 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
LOW…-polars/tests/unit/series/buffers/test_from_buffers.py1CODE
LOWpy-polars/tests/unit/series/buffers/test_from_buffer.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_interop.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
1003 more matches not shown…
Decorative Section Separators214 hits · 698 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.rs452 // ┌─────────────────────┬─────────────────────┬──────┐COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs456 // ╞═════════════════════╪═════════════════════╪══════╡COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs460 // └─────────────────────┴─────────────────────┴──────┘COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs474 // ┌─────────────────────────────────┬─────┬───────┐COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs478 // ╞═════════════════════════════════╪═════╪═══════╡COMMENT
MEDIUM…lars-plan/src/plans/conversion/type_coercion/binary.rs482 // └─────────────────────────────────┴─────┴───────┘COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs801 /// ╭────────┬────────╮COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs805 /// ╞════════╪════════╡COMMENT
MEDIUMcrates/polars-plan/src/dsl/mod.rs816 /// ╰────────┴────────╯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
154 more matches not shown…
Over-Commented Block650 hits · 602 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.rs301 match (self.mapping, ac.agg_state()) {COMMENT
LOWcrates/polars-expr/src/expressions/window.rs361 // this stores all group values on the original df sizeCOMMENT
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.rs481 // multiple inputs to have a compatible data layout as it invokes `flat_naive()`.COMMENT
LOWcrates/polars-expr/src/expressions/apply.rs501 // - el = elementwise, no need to aggregate() NotAggCOMMENT
LOWcrates/polars-expr/src/expressions/apply.rs521 // groups_diverge | el+agg | gaCOMMENT
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 /// expression is the output name.COMMENT
LOWcrates/polars-plan/src/plans/options.rs81 /// the following functions based on the output type and number of elements:COMMENT
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 (`first_metadata`COMMENT
LOW…ars-plan/src/plans/optimizer/predicate_pushdown/mod.rs221 }COMMENT
LOW…ars-plan/src/plans/optimizer/predicate_pushdown/mod.rs241 ) -> PolarsResult<IR> {COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs661COMMENT
LOW…optimizer/predicate_pushdown/join/predicate_pruning.rs781 }COMMENT
LOW…es/polars-plan/src/plans/optimizer/cse/cache_states.rs61 _ => false,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
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs261 /// entered a new expressionCOMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs301 },COMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs321// with the following call tree:COMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs341// pre-visit: col(bar) EEE -COMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs601// # ExampleCOMMENT
LOWcrates/polars-plan/src/plans/optimizer/cse/csee.rs621//COMMENT
LOW…ates/polars-plan/src/plans/conversion/convert_utils.rs1use super::*;COMMENT
LOW…lars-plan/src/plans/conversion/type_coercion/binary.rs441COMMENT
LOW…lars-plan/src/plans/conversion/type_coercion/binary.rs461 return None;COMMENT
LOW…es/polars-plan/src/plans/conversion/dsl_to_ir/scans.rs281 reader.num_rows()?,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.rs41 #[cfg(feature = "dtype-struct")]COMMENT
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 common-subplan-elimination. This elides duplicate plans and caches theirCOMMENT
LOWcrates/polars-plan/src/dsl/list.rs201 }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.rs381 /// .collect()?;COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs761COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs781 /// "groups" => &[1, 1, 2, 2, 1, 2, 3, 3, 1],COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs801 /// ╭────────┬────────╮COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs1041 /// # fn main() -> PolarsResult<()> {COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs1241COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs1441 pub fn pct_change(self, n: Expr) -> Expr {COMMENT
LOWcrates/polars-plan/src/dsl/mod.rs1501COMMENT
590 more matches not shown…
Deep Nesting131 hits · 123 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.py604CODE
LOWpy-polars/tests/unit/meta/test_api.py129CODE
LOWpy-polars/tests/unit/operations/test_bitwise.py89CODE
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.py1213CODE
LOW…polars/tests/unit/functions/range/test_linear_space.py31CODE
LOWpy-polars/tests/unit/lazyframe/test_optimizations.py349CODE
LOWpy-polars/src/polars/selectors.py273CODE
LOWpy-polars/src/polars/selectors.py1017CODE
LOWpy-polars/src/polars/selectors.py1207CODE
LOWpy-polars/src/polars/selectors.py358CODE
LOWpy-polars/src/polars/series/series.py9815CODE
LOWpy-polars/src/polars/series/series.py266CODE
LOWpy-polars/src/polars/series/series.py849CODE
LOWpy-polars/src/polars/series/series.py1153CODE
LOWpy-polars/src/polars/series/series.py1620CODE
LOWpy-polars/src/polars/series/series.py4784CODE
LOWpy-polars/src/polars/series/utils.py26CODE
LOWpy-polars/src/polars/_utils/slice.py83CODE
LOWpy-polars/src/polars/_utils/slice.py124CODE
LOWpy-polars/src/polars/_utils/various.py301CODE
LOWpy-polars/src/polars/_utils/various.py318CODE
LOWpy-polars/src/polars/_utils/various.py478CODE
LOWpy-polars/src/polars/_utils/various.py626CODE
LOWpy-polars/src/polars/_utils/deprecation.py339CODE
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.py171CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py242CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py121CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py266CODE
LOWpy-polars/src/polars/_utils/nest_asyncio.py321CODE
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
LOWpy-polars/src/polars/_utils/construction/utils.py86CODE
71 more matches not shown…
AI Structural Patterns90 hits · 80 pts
SeverityFileLineSnippetContext
LOWpy-polars/tests/unit/io/test_delta_deletion_vector.py780CODE
LOWpy-polars/src/polars/plugins.py24CODE
LOWpy-polars/src/polars/series/series.py9362CODE
LOWpy-polars/src/polars/series/series.py9450CODE
LOWpy-polars/src/polars/series/datetime.py2273CODE
LOWpy-polars/src/polars/dataframe/frame.py381CODE
LOWpy-polars/src/polars/dataframe/frame.py3013CODE
LOWpy-polars/src/polars/dataframe/frame.py3040CODE
LOWpy-polars/src/polars/dataframe/frame.py3066CODE
LOWpy-polars/src/polars/dataframe/frame.py3334CODE
LOWpy-polars/src/polars/dataframe/frame.py4136CODE
LOWpy-polars/src/polars/dataframe/frame.py7895CODE
LOWpy-polars/src/polars/dataframe/frame.py8251CODE
LOWpy-polars/src/polars/dataframe/frame.py9596CODE
LOWpy-polars/src/polars/dataframe/frame.py13021CODE
LOWpy-polars/src/polars/io/lines.py27CODE
LOWpy-polars/src/polars/io/lines.py129CODE
LOWpy-polars/src/polars/io/ndjson.py28CODE
LOWpy-polars/src/polars/io/ndjson.py192CODE
LOWpy-polars/src/polars/io/delta/functions.py23CODE
LOWpy-polars/src/polars/io/database/functions.py312CODE
LOWpy-polars/src/polars/io/database/functions.py328CODE
LOWpy-polars/src/polars/io/database/functions.py343CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py118CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py139CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py160CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py183CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py204CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py225CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py247CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py435CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py452CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py469CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py486CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py503CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py520CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py536CODE
LOWpy-polars/src/polars/io/spreadsheet/functions.py647CODE
LOWpy-polars/src/polars/io/spreadsheet/_write_utils.py341CODE
LOWpy-polars/src/polars/io/spreadsheet/_utils.py12CODE
LOWpy-polars/src/polars/io/csv/functions.py65CODE
LOWpy-polars/src/polars/io/csv/functions.py625CODE
LOWpy-polars/src/polars/io/csv/functions.py787CODE
LOWpy-polars/src/polars/io/csv/functions.py1122CODE
LOWpy-polars/src/polars/io/csv/functions.py1498CODE
LOWpy-polars/src/polars/io/csv/batched_reader.py19CODE
LOWpy-polars/src/polars/io/ipc/functions.py48CODE
LOWpy-polars/src/polars/io/ipc/functions.py397CODE
LOWpy-polars/src/polars/io/parquet/functions.py55CODE
LOWpy-polars/src/polars/io/parquet/functions.py467CODE
LOWpy-polars/src/polars/expr/datetime.py401CODE
LOWpy-polars/src/polars/expr/expr.py10860CODE
LOWpy-polars/src/polars/expr/expr.py10955CODE
LOWpy-polars/src/polars/expr/expr.py12073CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py34CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py260CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py280CODE
LOW…olars/src/polars/testing/parametric/strategies/core.py300CODE
LOWpy-polars/src/polars/functions/lazy.py2019CODE
LOWpy-polars/src/polars/functions/lazy.py2039CODE
30 more matches not shown…
Modern Structural Boilerplate69 hits · 68 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.py349def _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.py208__all__ = ["assert_sql_matches"]CODE
LOWpy-polars/src/polars/plugins.py21__all__ = ["register_plugin_function"]CODE
LOWpy-polars/src/polars/config.py35__all__ = ["Config"]CODE
LOWpy-polars/src/polars/config.py305 def _set_config_params(self, **options: Unpack[ConfigParameters]) -> None:CODE
LOWpy-polars/src/polars/_typing.py468__all__ = [CODE
LOWpy-polars/src/polars/_dependencies.py314__all__ = [CODE
LOWpy-polars/src/polars/__init__.py278__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.py221__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.py402__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/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__.py4__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__.py10__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__.py21__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__.py10__all__ = [CODE
LOWpy-polars/src/polars/ml/torch.py32__all__ = ["PolarsDataset"]CODE
LOWpy-polars/src/polars/functions/__init__.py96__all__ = [CODE
LOWpy-polars/src/polars/functions/random.py9def set_random_seed(seed: int) -> None:CODE
9 more matches not shown…
AI Slop Vocabulary22 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMcrates/polars-expr/src/expressions/structeval.rs300 // elementwise top-level and not fallible. We leverage the reference dispatch for ApplyExpr,COMMENT
MEDIUM…es/polars-plan/src/plans/conversion/dsl_to_ir/scans.rs373 // TODO: byte-weight (`rows_per_byte * total_bytes`, skew-robust)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.rs121/// 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.rs720 // 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.rs1028 // 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.py628 # 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.py123 # 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.py301 # 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.py2368 # Create a Series where the null value is backed by a value which wouldCOMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py374 # Create a pyarrow table with a list[null] column.COMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py349 # Create an enum / categorical / dictionary typed pyarrow arrayCOMMENT
MEDIUMpy-polars/tests/unit/interop/test_interop.py872 # Create a dataset with 3 rowsSTRING
MEDIUMpy-polars/tests/unit/io/test_parquet.py140 # 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.py615 # Define a DataFrame with columns for datetime, date, and timeCOMMENT
MEDIUMpy-polars/tests/unit/sql/test_set_ops.py111 # 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 Wrapping25 hits · 26 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.py185 except Exception:CODE
LOWpy-polars/src/polars/datatypes/convert.py353 except Exception:CODE
LOWpy-polars/src/polars/catalog/unity/client.py665 except Exception as e:CODE
LOWpy-polars/src/polars/io/plugins.py86 except Exception as e:CODE
LOWpy-polars/src/polars/io/database/_executor.py255 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.py434 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.py434 except Exception as e:CODE
LOW…/src/polars/io/cloud/credential_provider/_providers.py499 except Exception:CODE
MEDIUM…/src/polars/io/cloud/credential_provider/_providers.py496def _azcli_version(cls) -> str | None:CODE
LOWpy-polars/src/polars/meta/versions.py117 except Exception:CODE
LOWpy-polars/src/polars/convert/general.py1158 except Exception as exc:CODE
MEDIUMpy-polars/src/polars/lazyframe/frame.py823def _repr_html_(self) -> str:CODE
LOWpy-polars/src/polars/lazyframe/frame.py833 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.py250 # Check if empty list is converted to pl.StringCOMMENT
LOW…rs/tests/unit/operations/arithmetic/test_arithmetic.py212 # Check if fused is turned off for literals see: #9857COMMENT
LOWpy-polars/tests/unit/lazyframe/test_cse.py899 # Check if output is stableCOMMENT
LOWpy-polars/tests/docs/run_doctest.py116 # Set doctests to fail on warningsCOMMENT
LOWpy-polars/src/polars/_utils/various.py160 # 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 Leakage2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…-polars/tests/unit/operations/arithmetic/test_array.py336 # checking the dimension. In this example both arrays have the leaf stride asCOMMENT
HIGHdocs/source/src/python/polars-cloud/quickstart.py12# Then we write a regular lazy Polars query. In this exampleSTRING
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
LOW…ts/unit/operations/map/test_inefficient_map_warning.py576 # make sure to keep the `^` and `$`, and the assertion on `len(warnings)`COMMENT
LOWdocs/source/src/python/polars-cloud/remote-query.py41 # make sure to enter your own workspace nameSTRING
MEDIUM…le/derive_expression/expression_lib/src/expressions.rs205/// This expression is for demonstration purposes as we have a dedicatedCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/polars-stream/src/nodes/joins/equi_join.rs1028 // TODO: implement something more re-usable and robust.COMMENT
LOWcrates/polars-sql/src/functions.rs1099 // TODO: implement the following modifiers where possibleCOMMENT
LOWpy-polars/src/polars/series/series.py1557 # TODO: implement for these types without casting to seriesCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/source/polars-cloud/organization/billing.md35### Step 1: Subscribe on AWS MarketplaceCOMMENT
LOWdocs/source/polars-cloud/organization/billing.md46### Step 2: Link the subscription to your organizationCOMMENT
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.rs294 // We need to check if it is a directory for local paths (we can be here dueCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpy-polars/src/polars/lazyframe/opt_flags.py308 def helper(f: QueryOptFlags, field_name: str, value: bool) -> QueryOptFlags: # noqa: FBT001CODE