Repository Analysis

delta-io/delta-rs

A native Rust library for Delta Lake, with bindings into Python

5.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of delta-io/delta-rs, a Rust project with 3,277 GitHub stars. SynthScan v2.0 examined 170,512 lines of code across 847 source files, recording 749 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 5.1 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).

5.1
Adjusted Score
5.1
Raw Score
100%
Time Factor
2026-08-08
Last Push
3.3K
Stars
Rust
Language
170.5K
Lines of Code
847
Files
749
Pattern Hits
2026-08-09
Scan Date
0.02
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 14MEDIUM 25LOW 710

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 749 distinct pattern matches across 20 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 Identifiers384 hits · 346 pts
SeverityFileLineSnippetContext
LOWpython/deltalake/transaction.py79def create_table_with_add_actions(CODE
LOWpython/deltalake/__init__.py88def enable_nanosecond_timestamps() -> None:CODE
LOWpython/deltalake/__init__.py116def _disable_nanosecond_timestamps() -> None:CODE
LOWpython/deltalake/__init__.py133def _nanosecond_timestamps_enabled() -> bool:CODE
LOWpython/deltalake/_util.py24def deprecate_positional_commit_args(CODE
LOWpython/deltalake/table.py1168 def _stringify_partition_values(CODE
LOWpython/deltalake/table.py1377 def __datafusion_table_provider__(self, session: Any | None = None) -> Any:CODE
LOWpython/deltalake/table.py1688 def when_not_matched_insert_all(CODE
LOWpython/deltalake/table.py1786 def when_not_matched_by_source_update(CODE
LOWpython/deltalake/table.py1836 def when_not_matched_by_source_delete(CODE
LOWpython/deltalake/writer/_utils.py12def try_get_table_and_table_uri(CODE
LOWpython/tests/test_datafusion.py10def _datafusion_major_version() -> int | None:CODE
LOWpython/tests/test_datafusion.py17def test_datafusion_table_provider_incompatible_version_errors(tmp_path, monkeypatch):CODE
LOWpython/tests/test_datafusion.py48def test_datafusion_table_provider_not_installed_errors(tmp_path, monkeypatch):CODE
LOWpython/tests/test_datafusion.py69def test_datafusion_table_provider_accepts_session_keyword_argument(CODE
LOWpython/tests/test_datafusion.py89def test_datafusion_table_provider_invalid_task_ctx_capsule_name_errors(CODE
LOWpython/tests/test_datafusion.py105 def __datafusion_task_context_provider__(self):CODE
LOWpython/tests/test_datafusion.py121def test_datafusion_table_provider(tmp_path):CODE
LOWpython/tests/conftest.py30def pytest_collection_modifyitems(CODE
LOWpython/tests/conftest.py44def wait_till_host_is_available(host: str, timeout_sec: int = 0.5):CODE
LOWpython/tests/conftest.py337def sample_table_with_spaces_numbers() -> Table:CODE
LOWpython/tests/conftest.py404def nanosecond_timestamps_enabled():CODE
LOWpython/tests/test_stats.py77def test_microsecond_truncation_parquet_stats(tmp_path, use_stats_struct):CODE
LOWpython/tests/test_alter.py62def test_add_constraint_roundtrip_metadata(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py133def test_set_table_properties_min_writer_version(CODE
LOWpython/tests/test_alter.py411def test_add_timestamp_ntz_column(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py416def test_add_timestamp_nanos_column(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py423def test_add_timestamp_nanos_ntz_column(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py576def test_drop_column_not_null_roundtrip_metadata(tmp_path: pathlib.Path):CODE
LOWpython/tests/test_alter.py587def test_drop_column_not_null_unknown_column(tmp_path: pathlib.Path):CODE
LOWpython/tests/test_alter.py596def test_drop_column_not_null_already_nullable(tmp_path: pathlib.Path):CODE
LOWpython/tests/test_alter.py90def test_drop_constraint_invalid(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py105def test_drop_constraint_invalid_ignore(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py114def test_drop_constraint_roundtrip_metadata(CODE
LOWpython/tests/test_alter.py155def test_set_table_properties_invalid_min_writer_version(CODE
LOWpython/tests/test_alter.py174def test_set_table_properties_min_reader_version(CODE
LOWpython/tests/test_alter.py197def test_set_table_properties_invalid_min_reader_version(CODE
LOWpython/tests/test_alter.py215def test_set_table_properties_enable_cdf(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py230def test_set_table_properties_enable_cdf_invalid(CODE
LOWpython/tests/test_alter.py248def test_set_table_properties_enable_cdf_value_false(CODE
LOWpython/tests/test_alter.py265def test_set_table_properties_enable_cdf_with_writer_version_bumped(CODE
LOWpython/tests/test_alter.py288def test_set_table_properties_enable_cdf_and_deletion_vectors(CODE
LOWpython/tests/test_alter.py348def test_set_table_properties_enable_dv(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py369def test_add_column_primitive(existing_sample_table: DeltaTable):CODE
LOWpython/tests/test_alter.py386def test_add_field_in_struct_column(existing_table: DeltaTable):CODE
LOWpython/tests/test_alter.py485def test_add_feature_variations(existing_table: DeltaTable, feature):CODE
LOWpython/tests/test_alter.py496def test_add_features_disallowed_protocol_increase(existing_sample_table: DeltaTable):CODE
LOWpython/tests/test_alter.py559def test_drop_column_not_null(tmp_path: pathlib.Path):CODE
LOWpython/tests/test_alter.py639def test_set_table_description(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py657def test_set_table_metadata_with_post_commithook_properties(CODE
LOWpython/tests/test_alter.py683def test_set_table_name_overwrite(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py695def test_set_table_description_overwrite(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py709def test_set_table_name_character_limit(tmp_path: pathlib.Path, sample_table: Table):CODE
LOWpython/tests/test_alter.py725def test_set_table_description_character_limit(CODE
LOWpython/tests/test_alter.py743def test_set_table_metadata_name_none_should_raise_error(CODE
LOWpython/tests/test_generated_columns.py88def test_create_table_with_generated_columns(tmp_path, gc_schema: DeltaSchema):CODE
LOWpython/tests/test_generated_columns.py121def test_write_with_gc_higher_writer_version(tmp_path, valid_gc_data):CODE
LOWpython/tests/test_generated_columns.py139def test_write_with_invalid_gc(tmp_path, invalid_gc_data):CODE
LOWpython/tests/test_generated_columns.py149def test_write_with_invalid_gc_to_table(table_with_gc, invalid_gc_data):CODE
LOWpython/tests/test_generated_columns.py159def test_write_to_table_generating_data(table_with_gc: DeltaTable):CODE
324 more matches not shown…
Over-Commented Block157 hits · 156 pts
SeverityFileLineSnippetContext
LOWCargo.toml101tpe = "tpe"COMMENT
LOWrust-toolchain.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWcrates/opendal/tests/integration_s3.rs1//! End-to-end test of the generic OpenDAL backend over the `s3` service.COMMENT
LOWcrates/opendal/src/lib.rs41///COMMENT
LOW…tes/core/tests/it_datafusion/integration_datafusion.rs761 // In particular 'new_column' contains statistics for when itCOMMENT
LOW…tes/core/tests/it_datafusion/integration_datafusion.rs781COMMENT
LOW…tes/core/tests/it_datafusion/integration_datafusion.rs801 // .get(schema.index_of("timestamp").unwrap())COMMENT
LOW…tes/core/tests/it_datafusion/integration_datafusion.rs1141 // let batch = create_all_types_batch(1, 0, 0);COMMENT
LOWcrates/core/src/lib.rs1//! Native Delta Lake implementation in RustCOMMENT
LOWcrates/core/src/lib.rs21//! let table_url = Url::from_directory_path("/abs/test/tests/data/simple_table").unwrap();COMMENT
LOWcrates/core/src/lib.rs41//! let version = table.version();COMMENT
LOWcrates/core/src/lib.rs61//! # #[cfg(feature="datafusion")]COMMENT
LOWcrates/core/src/lib.rs181 Ok(table)COMMENT
LOWcrates/core/src/lib.rs241 );COMMENT
LOWcrates/core/src/errors.rs101 /// Error returned when attempting to write bad data to the tableCOMMENT
LOWcrates/core/src/data_catalog/storage/mod.rs21/// A `SchemaProvider` that scans an `ObjectStore` to automatically discover delta tables.COMMENT
LOWcrates/core/src/logstore/factories.rs101/// Trait for generating [LogStore] implementationsCOMMENT
LOWcrates/core/src/logstore/config.rs1//! Configuration for the Delta Log Store.COMMENT
LOWcrates/core/src/logstore/config.rs21/// input or the environment can be applied generically by key name.COMMENT
LOWcrates/core/src/logstore/config.rs101 /// Runtime configuration.COMMENT
LOWcrates/core/src/logstore/config.rs121 pub certificate: Option<CertificateConfig>,COMMENT
LOWcrates/core/src/logstore/config.rs321/// Parse a configuration value as a plain string (an infallible identity conversion).COMMENT
LOWcrates/core/src/logstore/mod.rs1//! # DeltaLake storage systemCOMMENT
LOWcrates/core/src/logstore/mod.rs21//! on the atomicity and durability guarantees of the implementation of this interface.COMMENT
LOWcrates/core/src/logstore/mod.rs161pub(crate) static DELTA_LOG_REGEX: LazyLock<Regex> =COMMENT
LOWcrates/core/src/logstore/mod.rs361/// the implementation of this interface. Specifically,COMMENT
LOWcrates/core/src/logstore/storage/retry_ext.rs1//! Retry extension for [`ObjectStore`]COMMENT
LOWcrates/core/src/logstore/storage/retry_ext.rs21/// This trait provides additional methods for working with [`ObjectStore`] that automatically retryCOMMENT
LOWcrates/core/src/protocol/checkpoints.rs101/// - strictly less than the provided `until_version`.COMMENT
LOWcrates/core/src/protocol/mod.rs221 pub action_type: String,COMMENT
LOWcrates/core/src/protocol/mod.rs241 /// Would usually only create the table, if also data is written,COMMENT
LOWcrates/core/src/protocol/mod.rs801 ),COMMENT
LOWcrates/core/src/operations/vacuum.rs1//! Vacuum a Delta tableCOMMENT
LOWcrates/core/src/operations/vacuum.rs81#[derive(Debug, Default, Clone, PartialEq)]COMMENT
LOWcrates/core/src/operations/generate.rs1//!COMMENT
LOWcrates/core/src/operations/generate.rs21//! ├── part-00006-d0ec7722-b30c-4e1c-92cd-b4fe8d3bb954-c000.snappy.parquetCOMMENT
LOWcrates/core/src/operations/generate.rs41//! │   │   │   └── manifestCOMMENT
LOWcrates/core/src/operations/generate.rs61//! │   └── part-00000-89cdd4c8-2af7-4add-8ea3-3990b2f027b5.c000.snappy.parquetCOMMENT
LOWcrates/core/src/operations/optimize.rs1//! Optimize a Delta TableCOMMENT
LOWcrates/core/src/operations/delete.rs1//! Delete records from a Delta Table that satisfy a predicateCOMMENT
LOWcrates/core/src/operations/delete.rs21//! # let schema = StructType::try_new(vec![COMMENT
LOWcrates/core/src/operations/delete.rs121 }COMMENT
LOWcrates/core/src/operations/update.rs1//! Update records from a Delta Table for records satisfy a predicateCOMMENT
LOWcrates/core/src/operations/filesystem_check.rs1//! Audit the Delta Table for active files that do not exist in the underlying filesystem and remove them.COMMENT
LOWcrates/core/src/operations/cdc.rs61///COMMENT
LOWcrates/core/src/operations/restore.rs1//! Perform restore of delta table to a specified version or datetimeCOMMENT
LOWcrates/core/src/operations/mod.rs1//! High level operations API to interact with Delta tablesCOMMENT
LOWcrates/core/src/operations/mod.rs81impl DeltaTable {COMMENT
LOWcrates/core/src/operations/mod.rs321COMMENT
LOWcrates/core/src/operations/mod.rs361 /// Create a new [`DeltaOps`] instance, backed by an un-initialized in memory tableCOMMENT
LOWcrates/core/src/operations/mod.rs381 /// Create a new Delta tableCOMMENT
LOWcrates/core/src/operations/load_cdf.rs1//! Module for reading the change datafeed of delta tablesCOMMENT
LOWcrates/core/src/operations/load_cdf.rs381 #[inline]COMMENT
LOWcrates/core/src/operations/write/mod.rs1//!COMMENT
LOWcrates/core/src/operations/merge/mod.rs1//! Merge data from a source dataset with the target Delta Table based on a joinCOMMENT
LOWcrates/core/src/operations/merge/mod.rs221 custom_execute_handler: None,COMMENT
LOWcrates/core/src/operations/merge/mod.rs241 /// .when_matched_update(|update| {COMMENT
LOWcrates/core/src/operations/merge/mod.rs261 self.match_operations.push(op);COMMENT
LOWcrates/core/src/operations/merge/mod.rs301 /// evaluated to determine if the corresponding operation are performed.COMMENT
LOWcrates/core/src/operations/merge/mod.rs321 whereCOMMENT
97 more matches not shown…
Decorative Section Separators18 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMCargo.toml103# ============================================================================COMMENT
MEDIUMCargo.toml105# ============================================================================COMMENT
MEDIUMCargo.toml114# ============================================================================COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs17//! ┌─────────────────────────────┐COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs23//! └─────────────┬───────────────┘COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs25//! ─────────────────────┼────────────────────────────────────COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs28//! ┌─────────────────────────────┐COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs33//! └─────────────┬───────────────┘COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs36//! ┌───────────────────────────────────┐COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs38//! │ ┌───────────────────────────────┐ │COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs44//! │ └──────────────┬────────────────┘ │COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs47//! │ ┌───────────────────────────────┐ │COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs54//! │ └───────────────────────────────┘ │COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs56//! └────────────────┬──────────────────┘COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs59//! ┌───────────────────────────────┐COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs65//! └──────────────┬────────────────┘COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs68//! ┌───────────────────────────────┐COMMENT
MEDIUMcrates/core/src/kernel/transaction/mod.rs74//! └───────────────────────────────┘COMMENT
Fake / Example Data60 hits · 72 pts
SeverityFileLineSnippetContext
LOWcrates/core/src/operations/write/mod.rs2584 Arc::new(StringArray::from(vec![Some("555-4242")])),CODE
LOWcrates/core/src/kernel/transaction/mod.rs1291 ("userName".to_owned(), json!("Jane Doe")),CODE
LOWcrates/core/src/kernel/transaction/mod.rs1306 assert_eq!(info.user_name.as_deref(), Some("Jane Doe"));CODE
LOWpython/tests/test_alter.py67 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_alter.py72 assert dt.history(1)[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_alter.py126 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_alter.py129 assert dt.history(1)[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_alter.py581 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_alter.py584 assert dt.history(1)[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_writer.py2776 "details": {"address": "123 Main St", "email": "charlie@example.com"},CODE
LOWpython/tests/test_optimize.py134 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_optimize.py145 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_optimize.py173 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_optimize.py177 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_optimize.py445 "details": {"address": "123 Main St", "email": "charlie@example.com"},CODE
LOWpython/tests/test_delete.py31 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_delete.py37 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_update.py70 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_update.py81 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_repair.py26 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_repair.py33 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_merge.py37 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_merge.py79 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_merge.py2586 {"street": "123 Main St", "city": "Anytown", "state": "CA"},CODE
LOWpython/tests/test_create.py36 commit_properties=CommitProperties(custom_metadata={"userName": "John Doe"}),CODE
LOWpython/tests/test_create.py47 assert dt.history()[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_create.py112 commit_properties=CommitProperties(custom_metadata={"userName": "John Doe"}),CODE
LOWpython/tests/test_create.py127 assert dt.history()[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_create.py149 commit_properties=CommitProperties(custom_metadata={"userName": "John Doe"}),CODE
LOWpython/tests/test_create.py163 assert dt.history()[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_create.py189 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_create.py212 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_create.py227 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_create.py258 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_restore.py35 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_restore.py39 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_convert_to_delta.py35 commit_properties=CommitProperties(custom_metadata={"userName": "John Doe"}),CODE
LOWpython/tests/test_convert_to_delta.py47 assert dt.history()[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_lakefs.py115 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_lakefs.py123 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_lakefs.py238 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_lakefs.py245 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_lakefs.py374 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_lakefs.py415 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_lakefs.py447 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_lakefs.py451 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_lakefs.py547 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_lakefs.py558 assert last_action["userName"] == "John Doe"CODE
LOWpython/tests/test_commit_properties.py219 custom_metadata={"userName": "Jane Doe", "userId": "jane"}CODE
LOWpython/tests/test_commit_properties.py224 assert history["userName"] == "Jane Doe"CODE
LOWpython/tests/test_commit_properties.py228 assert raw_commit_info["userName"] == "Jane Doe"CODE
LOWpython/tests/test_vacuum.py103 assert history[0]["userName"] == "John Doe"CODE
LOWpython/tests/test_vacuum.py104 assert history[1]["userName"] == "John Doe"CODE
LOWpython/tests/test_vacuum.py362 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_vacuum.py378 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_vacuum.py387 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_vacuum.py399 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_vacuum.py411 commit = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOWpython/tests/test_vacuum.py82 commit_properties = CommitProperties(custom_metadata={"userName": "John Doe"})CODE
LOW…hon/tests/pyspark_integration/test_write_to_pyspark.py222 "details": {"address": "123 Main St", "email": "charlie@example.com"},CODE
Unused Imports60 hits · 58 pts
SeverityFileLineSnippetContext
LOWpython/deltalake/query.py1CODE
LOWpython/deltalake/transaction.py1CODE
LOWpython/deltalake/__init__.py8CODE
LOWpython/deltalake/__init__.py8CODE
LOWpython/deltalake/__init__.py8CODE
LOWpython/deltalake/__init__.py8CODE
LOWpython/deltalake/__init__.py20CODE
LOWpython/deltalake/__init__.py21CODE
LOWpython/deltalake/__init__.py21CODE
LOWpython/deltalake/__init__.py21CODE
LOWpython/deltalake/__init__.py21CODE
LOWpython/deltalake/__init__.py22CODE
LOWpython/deltalake/__init__.py22CODE
LOWpython/deltalake/__init__.py23CODE
LOWpython/deltalake/__init__.py23CODE
LOWpython/deltalake/__init__.py24CODE
LOWpython/deltalake/__init__.py24CODE
LOWpython/deltalake/__init__.py24CODE
LOWpython/deltalake/__init__.py24CODE
LOWpython/deltalake/__init__.py24CODE
LOWpython/deltalake/exceptions.py1CODE
LOWpython/deltalake/exceptions.py1CODE
LOWpython/deltalake/exceptions.py1CODE
LOWpython/deltalake/exceptions.py1CODE
LOWpython/deltalake/exceptions.py1CODE
LOWpython/deltalake/table.py1CODE
LOWpython/deltalake/table.py42CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/schema.py3CODE
LOWpython/deltalake/writer/_conversion.py1CODE
LOWpython/deltalake/writer/properties.py1CODE
LOWpython/deltalake/writer/__init__.py1CODE
LOWpython/deltalake/writer/__init__.py2CODE
LOWpython/deltalake/writer/__init__.py2CODE
LOWpython/deltalake/writer/__init__.py2CODE
LOWpython/deltalake/writer/__init__.py7CODE
LOWpython/deltalake/writer/writer.py1CODE
LOWpython/deltalake/writer/_utils.py1CODE
LOWpython/deltalake/writer/convert_to.py1CODE
LOWpython/deltalake/fs/_base_handler.py1CODE
LOWpython/deltalake/fs/_base_handler.py10CODE
LOWpython/deltalake/fs/_base_handler.py11CODE
LOWpython/deltalake/fs/_base_handler.py11CODE
LOWpython/deltalake/fs/fs_handler.py1CODE
LOWpython/deltalake/fs/__init__.py1CODE
LOWpython/tests/conftest.py1CODE
LOWpython/tests/test_threaded.py20CODE
LOWpython/tests/test_benchmark.py1CODE
LOWpython/tests/test_convert_to_delta.py12CODE
LOWpython/tests/test_history.py9CODE
LOWpython/tests/test_commit_properties.py1CODE
LOWpython/tests/pyspark_integration/utils.py4CODE
LOWpython/tests/data_acceptance/test_reader.py1CODE
LOWdocs/_build/macro.py3CODE
LOWdocs/_build/macro.py5CODE
Cross-Language Confusion8 hits · 42 pts
SeverityFileLineSnippetContext
HIGHpython/deltalake/writer/_conversion.py36 # Prevent infinite recursion: if existing field is also null, keep as nullCOMMENT
HIGHpython/deltalake/fs/_base_handler.py66 return self._handler.equals(other)CODE
HIGHpython/tests/test_delete.py67 assert table.equals(expected_table)CODE
HIGHpython/tests/test_delete.py140 assert table.equals(expected_table)CODE
HIGHpython/tests/test_merge.py3401 assert result.equals(expected)CODE
HIGHpython/tests/test_file_system_handler.py153 assert table.equals(arrow_table)CODE
HIGHpython/tests/test_file_system_handler.py172 assert table.equals(ds_table)CODE
HIGHpython/tests/test_file_system_handler.py191 assert table.equals(ds_table)CODE
Synthetic Comment Markers3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md11## Using AI-generated codeCOMMENT
HIGHCONTRIBUTING.md17generated by AI with little to no engagement from the author may be closedCODE
HIGHCONTRIBUTING.md44Foundation's](https://apache.org) [guidance on AI-generatedCODE
AI Structural Patterns14 hits · 14 pts
SeverityFileLineSnippetContext
LOWpython/deltalake/transaction.py79CODE
LOWpython/deltalake/table.py222CODE
LOWpython/deltalake/table.py823CODE
LOWpython/deltalake/table.py2233CODE
LOWpython/deltalake/table.py2319CODE
LOWpython/deltalake/writer/properties.py160CODE
LOWpython/deltalake/writer/writer.py27CODE
LOWpython/deltalake/writer/writer.py46CODE
LOWpython/deltalake/writer/writer.py65CODE
LOWpython/deltalake/writer/convert_to.py23CODE
LOWpython/tests/test_generated_columns.py57CODE
LOWpython/tests/test_generated_columns.py64CODE
LOWpython/tests/test_generated_columns.py76CODE
LOWpython/tests/test_cleanup.py39CODE
Excessive Try-Catch Wrapping10 hits · 12 pts
SeverityFileLineSnippetContext
LOWpython/tests/conftest.py53 except Exception:CODE
LOWpython/tests/test_tracing.py130 except Exception as e:CODE
LOWpython/tests/test_threaded.py38 except Exception as e:CODE
LOWpython/tests/test_threaded.py155 except Exception as err:CODE
LOWpython/tests/test_threaded.py171 except Exception as err:CODE
MEDIUMpython/tests/test_threaded.py146def run_update():CODE
LOWpython/tests/test_cleanup.py18 except Exception as e:CODE
MEDIUMpython/tests/test_cleanup.py19 print(f"Error deleting directory {data_path}: {e}")CODE
LOWpython/tests/test_benchmark.py200 except Exception:CODE
LOWpython/tests/test_delete_writer_properties.py111 except Exception as e:CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpython/tests/test_optimize.py432 # Define the data for the first writeCOMMENT
MEDIUMpython/tests/test_delete_writer_properties.py41 # Create a Delta table - use write_deltalake like other testsCOMMENT
MEDIUMpython/tests/test_delete_writer_properties.py137 # Create a Delta tableCOMMENT
MEDIUM.github/labeler.yml2# This file contains the defined labels for <https://github.com/actions/labeler>COMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpython/README.md56# For authentication, set OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=your-api-key"COMMENT
HIGHpython/deltalake/__init__.py75 os.environ["OTEL_EXPORTER_OTLP_HEADERS"] = "x-honeycomb-team=your-api-key"STRING
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOWcrates/core/src/protocol/checkpoints.rs134 // Step 1: Find min_retention_version among DELTA_LOG files with ts >= cutoff_timestampCOMMENT
LOWcrates/core/src/protocol/checkpoints.rs152 // Step 2: Move keep_version down to the minimum version inside the retention period to make sureCOMMENT
LOWcrates/core/src/protocol/checkpoints.rs156 // Step 3: Find safe checkpoint with checkpoint_version <= keep_version (no ts restriction)COMMENT
LOWcrates/core/src/protocol/checkpoints.rs181 // Step 4: Delete DELTA_LOG files where log_ver < safe_checkpoint_version && ts <= cutoff_timestampCOMMENT
LOWcrates/core/src/kernel/transaction/conflict_checker.rs493 // Here we need to check if the current transaction would have read theCOMMENT
Structural Annotation Overuse4 hits · 8 pts
SeverityFileLineSnippetContext
LOWcrates/core/src/protocol/checkpoints.rs134 // Step 1: Find min_retention_version among DELTA_LOG files with ts >= cutoff_timestampCOMMENT
LOWcrates/core/src/protocol/checkpoints.rs152 // Step 2: Move keep_version down to the minimum version inside the retention period to make sureCOMMENT
LOWcrates/core/src/protocol/checkpoints.rs156 // Step 3: Find safe checkpoint with checkpoint_version <= keep_version (no ts restriction)COMMENT
LOWcrates/core/src/protocol/checkpoints.rs181 // Step 4: Delete DELTA_LOG files where log_ver < safe_checkpoint_version && ts <= cutoff_timestampCOMMENT
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWpython/deltalake/query.py10logger = logging.getLogger(__name__)CODE
LOWpython/deltalake/__init__.py140__all__ = [CODE
LOWpython/deltalake/exceptions.py9__all__ = [CODE
LOWpython/deltalake/table.py1142 def update_incremental(self) -> None:CODE
LOWpython/deltalake/schema.py13__all__ = [CODE
LOWpython/deltalake/writer/__init__.py9__all__ = [CODE
LOWpython/deltalake/fs/__init__.py3__all__ = ["DeltaStorageHandler"]CODE
Deep Nesting7 hits · 6 pts
SeverityFileLineSnippetContext
LOWpython/deltalake/_util.py6CODE
LOWpython/deltalake/table.py687CODE
LOWpython/deltalake/writer/_conversion.py7CODE
LOWpython/deltalake/writer/_conversion.py26CODE
LOWpython/deltalake/writer/_conversion.py77CODE
LOWpython/deltalake/writer/properties.py160CODE
LOWpython/tests/test_writer.py1188CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpython/deltalake/table.py458 Load the Change Data Feed (CDF) from the Delta table as a stream of record batches. Parameters: STRING
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…/src/delta_datafusion/table_provider/next/scan/plan.rs8//! leverage predicates as best as possible both when integrating withCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_writer.py2193 # Check if it properly takes skippingNumIndexCols from the config in the tableCOMMENT
LOWpython/tests/test_writer.py2293 # Check if it properly takes skippingNumIndexCols from the config in the tableCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_benchmark.py17# NOTE: make sure to run these in release mode withCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdev/release/update_change_log.sh9# Usage:COMMENT