Repository Analysis

lancedb/lancedb

Developer-friendly OSS embedded retrieval library for multimodal AI. Search More; Manage Less.

6.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lancedb/lancedb, a HTML project with 10,889 GitHub stars. SynthScan v2.0 examined 230,068 lines of code across 573 source files, recording 1249 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 6.6 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).

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.9K
Stars
HTML
Language
230.1K
Lines of Code
573
Files
1.2K
Pattern Hits
2026-07-14
Scan Date
0.03
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 20MEDIUM 132LOW 1097

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 1249 distinct pattern matches across 16 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 Identifiers627 hits · 549 pts
SeverityFileLineSnippetContext
LOWnodejs/lancedb/arrow.ts920async function applyEmbeddingsFromMetadata(CODE
LOWnodejs/lancedb/arrow.ts1203export async function fromRecordsToStreamBuffer(CODE
LOWnodejs/lancedb/arrow.ts1299export async function fromRecordBatchToStreamBuffer(CODE
LOWpython/python/tests/test_primary_key.py18def test_set_unenforced_primary_key_accepts_string_or_one_element_list(tmp_path):CODE
LOWpython/python/tests/test_primary_key.py30def test_set_unenforced_primary_key_rejects_compound_and_empty(tmp_path):CODE
LOWpython/python/tests/test_primary_key.py48def test_set_unenforced_primary_key_is_immutable(tmp_path):CODE
LOWpython/python/tests/test_primary_key.py66def test_set_unenforced_primary_key_validates(tmp_path):CODE
LOWpython/python/tests/test_namespace_integration.py211def create_tracking_namespace(CODE
LOWpython/python/tests/test_namespace_integration.py273def test_namespace_create_table_with_provider(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py330def test_namespace_open_table_with_provider(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py398def test_namespace_create_schema_only_with_provider(use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py455def test_namespace_credential_refresh_on_read(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py522def test_namespace_credential_refresh_on_write(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py586def test_namespace_overwrite_mode(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py654def test_namespace_multiple_tables(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py712def test_namespace_with_schema_only(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_merge_insert_lsm.py60def test_lsm_merge_insert_bucket(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py76def test_lsm_merge_insert_unsharded(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py90def test_lsm_merge_insert_identity(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py105def test_lsm_merge_insert_use_lsm_write_false(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py118def test_lsm_merge_insert_validate_single_shard_off(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py130def test_lsm_merge_insert_use_lsm_write_true_requires_spec(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py145def test_lsm_merge_insert_rejects_on_not_primary_key(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py156def test_lsm_merge_insert_rejects_non_upsert(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py183async def test_async_lsm_merge_insert(tmp_path):CODE
LOWpython/python/tests/test_lsm_write_spec.py41def test_set_lsm_write_spec_validates(tmp_path):CODE
LOWpython/python/tests/test_lsm_write_spec.py56def test_unset_lsm_write_spec(tmp_path):CODE
LOWpython/python/tests/test_lsm_write_spec.py98def test_lsm_write_spec_with_maintained_indexes():CODE
LOWpython/python/tests/test_lsm_write_spec.py104async def test_async_set_unset_lsm_write_spec(tmp_path):CODE
LOWpython/python/tests/test_lsm_write_spec.py130def test_lsm_write_spec_identity_and_writer_config_defaults():CODE
LOWpython/python/tests/test_lsm_write_spec.py187async def test_async_get_lsm_write_spec(tmp_path):CODE
LOWpython/python/tests/test_pydantic.py191def test_bare_generic_raises_type_error():CODE
LOWpython/python/tests/test_pydantic.py203def test_nested_struct_list_optional():CODE
LOWpython/python/tests/test_pydantic.py234def test_nested_struct_list_optional_items():CODE
LOWpython/python/tests/test_pydantic.py269def test_nested_struct_list_optional_container_and_items():CODE
LOWpython/python/tests/test_pydantic.py418def test_fixed_size_list_field():CODE
LOWpython/python/tests/test_pydantic.py465def test_fixed_size_list_validation():CODE
LOWpython/python/tests/test_pydantic.py491def test_optional_nested_model():CODE
LOWpython/python/tests/test_pydantic.py613def test_multi_vector_nullable():CODE
LOWpython/python/tests/test_pydantic.py631def test_multi_vector_in_lance_model():CODE
LOWpython/python/tests/test_pydantic.py644def test_aliases_in_lance_model(mem_db):CODE
LOWpython/python/tests/test_pydantic.py668async def test_aliases_in_lance_model_async(mem_db_async):CODE
LOWpython/python/tests/test_db.py958def test_create_namespace_invalid_mode_raises(tmp_path):CODE
LOWpython/python/tests/test_db.py965def test_drop_namespace_invalid_mode_raises(tmp_path):CODE
LOWpython/python/tests/test_db.py973def test_drop_namespace_invalid_behavior_raises(tmp_path):CODE
LOWpython/python/tests/test_db.py981def test_clone_table_latest_version(tmp_path):CODE
LOWpython/python/tests/test_db.py192def test_db_contains_and_len_include_all_table_name_pages(tmp_db: lancedb.DBConnection):CODE
LOWpython/python/tests/test_db.py202def test_db_contains_stops_after_matching_table_page(CODE
LOWpython/python/tests/test_db.py275def test_create_table_from_iterator(mem_db: lancedb.DBConnection):CODE
LOWpython/python/tests/test_db.py292async def test_create_table_from_iterator_async(mem_db_async: lancedb.AsyncConnection):CODE
LOWpython/python/tests/test_db.py408async def test_create_exist_ok_async(tmp_db_async: lancedb.AsyncConnection):CODE
LOWpython/python/tests/test_db.py492async def test_create_table_stable_row_ids_via_storage_options(tmp_path):CODE
LOWpython/python/tests/test_db.py526def test_create_table_stable_row_ids_via_storage_options_sync(tmp_path):CODE
LOWpython/python/tests/test_db.py559async def test_create_table_stable_row_ids_table_level_override(tmp_path):CODE
LOWpython/python/tests/test_db.py598def test_create_table_stable_row_ids_table_level_override_sync(tmp_path):CODE
LOWpython/python/tests/test_db.py779def test_empty_or_nonexistent_table(mem_db: lancedb.DBConnection):CODE
LOWpython/python/tests/test_db.py883def test_prefilter_with_index(mem_db: lancedb.DBConnection):CODE
LOWpython/python/tests/test_db.py906def test_create_table_with_invalid_names(tmp_db: lancedb.DBConnection):CODE
LOWpython/python/tests/test_db.py917def test_bypass_vector_index_sync(tmp_db: lancedb.DBConnection):CODE
LOWpython/python/tests/test_db.py939def test_local_namespace_operations(tmp_path):CODE
567 more matches not shown…
Decorative Section Separators81 hits · 264 pts
SeverityFileLineSnippetContext
MEDIUM.bumpversion.toml67# ------------STRING
MEDIUMdeny.toml24# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml26# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml106# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml108# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml156# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml158# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml178# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml180# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_rerankers.py647# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_rerankers.py649# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py254# ===========================================================================COMMENT
MEDIUMpython/python/tests/test_nested_fields.py256# ===========================================================================COMMENT
MEDIUMpython/python/tests/test_nested_fields.py262# ===========================================================================COMMENT
MEDIUMpython/python/tests/test_nested_fields.py474# ===========================================================================COMMENT
MEDIUMpython/python/tests/test_nested_fields.py476# ===========================================================================COMMENT
MEDIUMpython/python/tests/test_nested_fields.py480# ===========================================================================COMMENT
MEDIUMpython/python/tests/test_nested_fields.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py49# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py66# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py68# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py241# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_nested_fields.py243# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_expr.py436# ── column name edge cases ────────────────────────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_expr.py16# ── unit tests for Expr construction ─────────────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_expr.py359# ── integration tests: end-to-end query against a real table ─────────────────COMMENT
MEDIUMpython/python/tests/test_expr.py575# ── bytes / binary column integration tests ───────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py312# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py314# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py404# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py406# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py660# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py662# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1178# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1180# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1227# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1229# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py791# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py793# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py915# ── Multi-worker correctness ──────────────────────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py963# ── Elastic determinism with num_workers ─────────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1003# ── Resumability with num_workers ─────────────────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1124# ── worker_info_override warning behaviour ────────────────────────────────────COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1491# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1494# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/lancedb/streaming.py302 # ── Stage 1 helpers ───────────────────────────────────────────────────COMMENT
MEDIUMpython/python/lancedb/streaming.py331 # ── Stage 2 helpers ───────────────────────────────────────────────────COMMENT
MEDIUMpython/python/lancedb/streaming.py353 # ── Combined advance ──────────────────────────────────────────────────COMMENT
MEDIUMpython/python/lancedb/streaming.py383 # ── Main loop ─────────────────────────────────────────────────────────COMMENT
MEDIUMpython/python/lancedb/expr.py91 # ── comparisons ──────────────────────────────────────────────────────────COMMENT
MEDIUMpython/python/lancedb/expr.py117 # ── logical ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpython/python/lancedb/expr.py139 # ── arithmetic ───────────────────────────────────────────────────────────COMMENT
21 more matches not shown…
Over-Commented Block228 hits · 211 pts
SeverityFileLineSnippetContext
LOWRUST_THIRD_PARTY_LICENSES.html12161// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FORCOMMENT
LOWdeny.toml21[output]COMMENT
LOWdeny.toml41 # https://rustsec.org/advisories/RUSTSEC-2023-0071COMMENT
LOWdeny.toml61 # backoff: unmaintained. Reached only via async-openai. ReplacementCOMMENT
LOWdeny.toml81 # rustls-webpki 0.101.7: reachable panic in CRL parsing. Same legacyCOMMENT
LOWdeny.toml141 # CDDL-1.0 (copyleft) is pulled in only as a dev/profiling dependency viaCOMMENT
LOWdeny.toml161# workspace like this one, duplicates are common and often unavoidableCOMMENT
LOWnodejs/RUST_THIRD_PARTY_LICENSES.html11521// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OFCOMMENT
LOWnodejs/license_header.txt1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWnodejs/src/remote.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWnodejs/src/remote.rs21 /// `LANCE_CLIENT_CONNECT_TIMEOUT`, as an integer number of seconds.COMMENT
LOWnodejs/src/remote.rs41 /// The maximum number of retries for connection errors. Default is 3. YouCOMMENT
LOWnodejs/src/remote.rs61 ///COMMENT
LOWnodejs/src/remote.rs141 }COMMENT
LOWnodejs/src/lib.rs21mod session;COMMENT
LOWnodejs/src/lib.rs41 pub read_consistency_interval: Option<f64>,COMMENT
LOWnodejs/src/lib.rs81#[napi(object)]COMMENT
LOWnodejs/src/otel.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWnodejs/src/table.rs621 /// be more columns to represent composite indices.COMMENT
LOWnodejs/src/table.rs641 /// `undefined` for remote tables.COMMENT
LOWnodejs/src/table.rs681 }COMMENT
LOWnodejs/src/table.rs781COMMENT
LOWnodejs/src/table.rs861 /// If it is a top-level column then it is just the name of the column. If it isCOMMENT
LOWnodejs/src/scannable.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWnodejs/src/scannable.rs41///COMMENT
LOWnodejs/src/scannable.rs61 /// Construct a new `NapiScannable`.COMMENT
LOWpython/RUST_THIRD_PARTY_LICENSES.html11861 <ul class="license-used-by">COMMENT
LOWpython/RUST_THIRD_PARTY_LICENSES.html11881 <h4>Used by:</h4>COMMENT
LOWpython/license_header.txt1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/python/tests/test_pydantic.py41COMMENT
LOWpython/python/tests/test_fts.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/python/tests/test_io.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/python/tests/docs/test_basic.py201 await tbl.create_index("vector")COMMENT
LOWpython/python/tests/docs/test_python.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/python/tests/docs/test_guide_tables.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/python/tests/docs/test_guide_tables.py281 # 0 1 [1.0, 2.0]COMMENT
LOWpython/python/lancedb/query.py741COMMENT
LOWpython/python/lancedb/dependencies.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/python/lancedb/integrations/__init__.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/src/session.rs21 fn default() -> Self {COMMENT
LOWpython/src/session.rs61 }COMMENT
LOWpython/src/session.rs81 /// -------COMMENT
LOWpython/src/runtime.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/src/otel.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWpython/src/expr.rs141 Ok(format!("PyExpr({})", sql))COMMENT
LOWpython/src/table.rs41#[pyclass(get_all, from_py_object)]COMMENT
LOWci/sysroot-x86_64-pc-windows-msvc.sh1#!/bin/shCOMMENT
LOWci/sysroot-aarch64-pc-windows-msvc.sh1#!/bin/shCOMMENT
LOWrust/license_header.txt1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/lancedb/examples/bench_streaming_dataloader.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/lancedb/src/database.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/lancedb/src/database.rs41/// A request to list names of tables in the database (deprecated, use ListTablesRequest)COMMENT
LOWrust/lancedb/src/database.rs261 async fn drop_all_tables(&self, namespace_path: &[String]) -> Result<()>;COMMENT
LOWrust/lancedb/src/error.rs41 #[snafu(display("Timeout error: {message}"))]COMMENT
LOWrust/lancedb/src/lib.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/lancedb/src/lib.rs21//!COMMENT
LOWrust/lancedb/src/lib.rs41//!COMMENT
LOWrust/lancedb/src/lib.rs61//! # tokio::runtime::Runtime::new().unwrap().block_on(async {COMMENT
LOWrust/lancedb/src/lib.rs81//! To create a Table, you need to provide an [`arrow_array::RecordBatch`]. TheCOMMENT
LOWrust/lancedb/src/lib.rs101//! true,COMMENT
168 more matches not shown…
Self-Referential Comments44 hits · 131 pts
SeverityFileLineSnippetContext
MEDIUMpython/python/tests/test_db.py1058 # Create a tag for the current versionCOMMENT
MEDIUMpython/python/tests/test_db.py1127 # Create a table through the main db connectionCOMMENT
MEDIUMpython/python/tests/test_table.py2863 # Create a LanceDB table schema with a vector and a text columnCOMMENT
MEDIUMpython/python/tests/test_table.py2876 # Create a list of 10 unique english phrasesCOMMENT
MEDIUMpython/python/tests/test_table.py2893 # Create a fts indexCOMMENT
MEDIUMpython/python/tests/test_embeddings.py151 # Create a mock arrow table with the metadataCOMMENT
MEDIUMpython/python/tests/test_embeddings.py572 # Create a mock that raises an AuthenticationErrorCOMMENT
MEDIUMpython/python/tests/test_namespace.py207 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py210 # Create a table with schema in child namespaceCOMMENT
MEDIUMpython/python/tests/test_namespace.py145 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py235 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py275 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py309 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py312 # Create a table in child namespaceCOMMENT
MEDIUMpython/python/tests/test_namespace.py334 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py365 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py368 # Create a table with schema in child namespaceCOMMENT
MEDIUMpython/python/tests/test_namespace.py431 # Create a namespaceCOMMENT
MEDIUMpython/python/tests/test_namespace.py663 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py690 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py693 # Create a table with schema in child namespaceCOMMENT
MEDIUMpython/python/tests/test_namespace.py747 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_namespace.py783 # Create a namespaceCOMMENT
MEDIUMpython/python/tests/test_namespace.py830 # Create a child namespace firstCOMMENT
MEDIUMpython/python/tests/test_rerankers.py33 # Create a LanceDB table schema with a vector and a text columnCOMMENT
MEDIUMpython/python/tests/test_rerankers.py98 # Create a fts indexCOMMENT
MEDIUMpython/python/tests/test_remote_db.py1379 # Create a static header providerCOMMENT
MEDIUMpython/python/tests/test_query.py192 # Create the Arrow tableCOMMENT
MEDIUMpython/python/tests/test_query.py220 # Create the Arrow tableCOMMENT
MEDIUMpython/python/tests/test_permutation.py236 # Create a permutation with shuffling (no seed)COMMENT
MEDIUMpython/python/tests/test_permutation.py275 # Create a permutation with shuffling using clumpsCOMMENT
MEDIUMpython/python/tests/test_permutation.py851 # Create a table and filter it to be emptyCOMMENT
MEDIUMpython/python/tests/test_s3.py118 # Create a table with SSECOMMENT
MEDIUMpython/python/tests/docs/test_search.py440 # Create a fts index before the hybrid searchCOMMENT
MEDIUMpython/python/tests/docs/test_search.py489 # Create a fts index before the hybrid searchCOMMENT
MEDIUMpython/python/tests/docs/test_guide_tables.py301 # Create a table from a pandas DataFrameCOMMENT
MEDIUMpython/python/tests/docs/test_guide_tables.py573 # Create a table from a pandas DataFrameCOMMENT
MEDIUMpython/python/lancedb/permutation.py266 >>> # Create a permutationSTRING
MEDIUMpython/python/lancedb/table.py5124 # This function is likely to block, since it either calls an expensiveCOMMENT
MEDIUMpython/python/lancedb/table.py5307 # This method is used by the sync tableCOMMENT
MEDIUMpython/python/lancedb/table.py5312 # This method is used by the sync tableCOMMENT
MEDIUMpython/python/lancedb/namespace.py1434 >>> # This function is sync, but returns an async connectionSTRING
MEDIUMpython/python/lancedb/dependencies.py6# The following code is originally from https://github.com/pola-rs/polars/blob/ea4389c31b0e87ddf20a85e4c3797b285966edb6/COMMENT
MEDIUMrust/lancedb/src/lib.rs79//! #### Create a tableCOMMENT
Unused Imports92 hits · 86 pts
SeverityFileLineSnippetContext
LOWpython/python/tests/test_table.py20CODE
LOWpython/python/tests/test_rerankers.py12CODE
LOWpython/python/lancedb/_blob.py6CODE
LOWpython/python/lancedb/db.py5CODE
LOWpython/python/lancedb/merge.py5CODE
LOWpython/python/lancedb/query.py4CODE
LOWpython/python/lancedb/query.py63CODE
LOWpython/python/lancedb/query.py74CODE
LOWpython/python/lancedb/index.py7CODE
LOWpython/python/lancedb/__init__.py19CODE
LOWpython/python/lancedb/__init__.py19CODE
LOWpython/python/lancedb/__init__.py19CODE
LOWpython/python/lancedb/__init__.py19CODE
LOWpython/python/lancedb/__init__.py20CODE
LOWpython/python/lancedb/__init__.py20CODE
LOWpython/python/lancedb/__init__.py20CODE
LOWpython/python/lancedb/__init__.py21CODE
LOWpython/python/lancedb/__init__.py21CODE
LOWpython/python/lancedb/__init__.py23CODE
LOWpython/python/lancedb/__init__.py23CODE
LOWpython/python/lancedb/__init__.py23CODE
LOWpython/python/lancedb/types.py4CODE
LOWpython/python/lancedb/pydantic.py6CODE
LOWpython/python/lancedb/context.py5CODE
LOWpython/python/lancedb/common.py10CODE
LOWpython/python/lancedb/permutation.py18CODE
LOWpython/python/lancedb/permutation.py18CODE
LOWpython/python/lancedb/table.py4CODE
LOWpython/python/lancedb/table.py32CODE
LOWpython/python/lancedb/table.py51CODE
LOWpython/python/lancedb/table.py164CODE
LOWpython/python/lancedb/table.py164CODE
LOWpython/python/lancedb/table.py181CODE
LOWpython/python/lancedb/table.py182CODE
LOWpython/python/lancedb/namespace.py11CODE
LOWpython/python/lancedb/otel.py18CODE
LOWpython/python/lancedb/otel.py30CODE
LOWpython/python/lancedb/dependencies.py16CODE
LOWpython/python/lancedb/expr.py20CODE
LOWpython/python/lancedb/expr.py24CODE
LOWpython/python/lancedb/embeddings/siglip.py22CODE
LOWpython/python/lancedb/embeddings/__init__.py6CODE
LOWpython/python/lancedb/embeddings/__init__.py6CODE
LOWpython/python/lancedb/embeddings/__init__.py6CODE
LOWpython/python/lancedb/embeddings/__init__.py7CODE
LOWpython/python/lancedb/embeddings/__init__.py8CODE
LOWpython/python/lancedb/embeddings/__init__.py9CODE
LOWpython/python/lancedb/embeddings/__init__.py10CODE
LOWpython/python/lancedb/embeddings/__init__.py11CODE
LOWpython/python/lancedb/embeddings/__init__.py12CODE
LOWpython/python/lancedb/embeddings/__init__.py13CODE
LOWpython/python/lancedb/embeddings/__init__.py14CODE
LOWpython/python/lancedb/embeddings/__init__.py14CODE
LOWpython/python/lancedb/embeddings/__init__.py14CODE
LOWpython/python/lancedb/embeddings/__init__.py15CODE
LOWpython/python/lancedb/embeddings/__init__.py16CODE
LOWpython/python/lancedb/embeddings/__init__.py17CODE
LOWpython/python/lancedb/embeddings/__init__.py17CODE
LOWpython/python/lancedb/embeddings/__init__.py18CODE
LOWpython/python/lancedb/embeddings/__init__.py19CODE
32 more matches not shown…
Cross-File Repetition16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHpython/python/lancedb/db.py0create a new namespace. parameters ---------- namespace_path : list[str] the namespace path to create. mode : str, optioSTRING
HIGHpython/python/lancedb/remote/db.py0create a new namespace. parameters ---------- namespace_path : list[str] the namespace path to create. mode : str, optioSTRING
HIGHpython/python/lancedb/namespace.py0create a new namespace. parameters ---------- namespace_path : list[str] the namespace path to create. mode : str, optioSTRING
HIGHpython/python/lancedb/db.py0describe a namespace. parameters ---------- namespace_path : list[str] the namespace identifier to describe. returns ---STRING
HIGHpython/python/lancedb/remote/db.py0describe a namespace. parameters ---------- namespace_path : list[str] the namespace identifier to describe. returns ---STRING
HIGHpython/python/lancedb/namespace.py0describe a namespace. parameters ---------- namespace_path : list[str] the namespace identifier to describe. returns ---STRING
HIGHpython/python/lancedb/db.py0list all tables in this database with pagination support. parameters ---------- namespace_path : list[str], optional theSTRING
HIGHpython/python/lancedb/remote/db.py0list all tables in this database with pagination support. parameters ---------- namespace_path : list[str], optional theSTRING
HIGHpython/python/lancedb/namespace.py0list all tables in this database with pagination support. parameters ---------- namespace_path : list[str], optional theSTRING
HIGHpython/python/lancedb/embeddings/gemini_text.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
HIGHpython/python/lancedb/embeddings/jinaai.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
HIGHpython/python/lancedb/embeddings/openai.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
HIGH…hon/python/lancedb/embeddings/sentence_transformers.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
HIGHpython/python/lancedb/embeddings/cohere.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
HIGHpython/python/lancedb/embeddings/ollama.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
HIGHpython/python/lancedb/embeddings/gte.py0get the embeddings for the given texts. parameters ---------- texts: list[str] or np.ndarray (of str) the texts to embedSTRING
Deep Nesting56 hits · 46 pts
SeverityFileLineSnippetContext
LOWpython/python/tests/test_namespace_integration.py197CODE
LOWpython/python/tests/test_torch.py60CODE
LOWpython/python/tests/test_torch.py420CODE
LOWpython/python/tests/test_embeddings_slow.py190CODE
LOWpython/python/tests/test_embeddings_slow.py204CODE
LOWpython/python/tests/test_remote_db.py384CODE
LOWpython/python/tests/test_remote_db.py596CODE
LOWpython/python/tests/test_remote_db.py842CODE
LOWpython/python/tests/test_remote_db.py389CODE
LOWpython/python/tests/test_remote_db.py600CODE
LOWpython/python/tests/test_remote_db.py843CODE
LOWpython/python/tests/test_elastic_dataloader.py145CODE
LOWpython/python/tests/test_elastic_dataloader.py258CODE
LOWpython/python/tests/test_elastic_dataloader.py1006CODE
LOWpython/python/tests/test_elastic_dataloader.py1064CODE
LOWpython/python/lancedb/_blob.py282CODE
LOWpython/python/lancedb/db.py606CODE
LOWpython/python/lancedb/query.py920CODE
LOWpython/python/lancedb/query.py992CODE
LOWpython/python/lancedb/query.py2723CODE
LOWpython/python/lancedb/query.py2874CODE
LOWpython/python/lancedb/pydantic.py254CODE
LOWpython/python/lancedb/pydantic.py312CODE
LOWpython/python/lancedb/pydantic.py385CODE
LOWpython/python/lancedb/common.py62CODE
LOWpython/python/lancedb/permutation.py940CODE
LOWpython/python/lancedb/table.py214CODE
LOWpython/python/lancedb/table.py426CODE
LOWpython/python/lancedb/table.py603CODE
LOWpython/python/lancedb/table.py4016CODE
LOWpython/python/lancedb/table.py4172CODE
LOWpython/python/lancedb/table.py633CODE
LOWpython/python/lancedb/table.py2747CODE
LOWpython/python/lancedb/table.py5025CODE
LOWpython/python/lancedb/table.py5225CODE
LOWpython/python/lancedb/namespace.py303CODE
LOWpython/python/lancedb/streaming.py256CODE
LOWpython/python/lancedb/streaming.py362CODE
LOWpython/python/lancedb/otel.py35CODE
LOWpython/python/lancedb/schema.py95CODE
LOWpython/python/lancedb/schema.py98CODE
LOWpython/python/lancedb/embeddings/siglip.py137CODE
LOWpython/python/lancedb/embeddings/colpali.py121CODE
LOWpython/python/lancedb/embeddings/colpali.py275CODE
LOWpython/python/lancedb/embeddings/voyageai.py66CODE
LOWpython/python/lancedb/embeddings/voyageai.py118CODE
LOWpython/python/lancedb/embeddings/jinaai.py64CODE
LOWpython/python/lancedb/embeddings/jinaai.py86CODE
LOWpython/python/lancedb/embeddings/cohere.py87CODE
LOWpython/python/lancedb/embeddings/base.py47CODE
LOWpython/python/lancedb/embeddings/open_clip.py147CODE
LOWpython/python/lancedb/rerankers/mrr.py63CODE
LOWpython/python/lancedb/remote/table.py389CODE
LOWpython/benchmarks/bench_streaming_dataloader.py90CODE
LOWci/set_lance_version.py76CODE
LOWci/set_lance_version.py110CODE
Excessive Try-Catch Wrapping27 hits · 32 pts
SeverityFileLineSnippetContext
LOWpython/python/tests/test_namespace_integration.py207 except Exception:CODE
LOWpython/python/tests/test_fts.py493 except Exception:CODE
LOWpython/python/tests/test_fts.py500 except Exception:CODE
LOWpython/python/tests/test_fts.py356 except Exception:CODE
LOWpython/python/tests/test_fts.py387 except Exception:CODE
LOWpython/python/tests/test_fts.py422 except Exception:CODE
LOWpython/python/tests/test_fts.py429 except Exception:CODE
LOWpython/python/tests/test_embeddings.py500 except Exception as e:CODE
LOWpython/python/tests/test_embeddings_slow.py25except Exception:CODE
LOWpython/python/tests/test_embeddings_slow.py33except Exception:CODE
LOWpython/python/tests/test_embeddings_slow.py216 except Exception as e: # noqa: PERF203CODE
LOWpython/python/tests/test_embeddings_slow.py354 except Exception:CODE
MEDIUMpython/python/tests/test_embeddings_slow.py347def aws_setup():CODE
LOWpython/python/tests/test_remote_db.py1588 except Exception as e:CODE
LOWpython/python/lancedb/query.py1037 except Exception as err:CODE
LOWpython/python/lancedb/query.py2933 except Exception as err:CODE
LOWpython/python/lancedb/util.py315 except Exception as e:CODE
LOWpython/python/lancedb/embeddings/colpali.py298 except Exception as e:CODE
LOWpython/python/lancedb/embeddings/voyageai.py47 except Exception:CODE
MEDIUMpython/python/lancedb/embeddings/voyageai.py43def is_valid_url(text):CODE
LOWpython/python/lancedb/embeddings/jinaai.py30 except Exception:CODE
MEDIUMpython/python/lancedb/embeddings/jinaai.py26def is_valid_url(text):CODE
LOWpython/python/lancedb/embeddings/openai.py119 except Exception:CODE
LOWpython/python/lancedb/embeddings/utils.py63 except Exception:CODE
LOWpython/python/lancedb/embeddings/utils.py272 except Exception as e: # noqa: PERF203CODE
LOWpython/python/lancedb/embeddings/bedrock.py170 except Exception as e:CODE
LOWci/set_lance_version.py241 except Exception as e:CODE
AI Structural Patterns32 hits · 28 pts
SeverityFileLineSnippetContext
LOWpython/python/lancedb/db.py236CODE
LOWpython/python/lancedb/db.py886CODE
LOWpython/python/lancedb/db.py1432CODE
LOWpython/python/lancedb/db.py1660CODE
LOWpython/python/lancedb/__init__.py64CODE
LOWpython/python/lancedb/__init__.py339CODE
LOWpython/python/lancedb/table.py888CODE
LOWpython/python/lancedb/table.py910CODE
LOWpython/python/lancedb/table.py1086CODE
LOWpython/python/lancedb/table.py2036CODE
LOWpython/python/lancedb/table.py2508CODE
LOWpython/python/lancedb/table.py2532CODE
LOWpython/python/lancedb/table.py2973CODE
LOWpython/python/lancedb/table.py3392CODE
LOWpython/python/lancedb/namespace.py392CODE
LOWpython/python/lancedb/namespace.py526CODE
LOWpython/python/lancedb/namespace.py893CODE
LOWpython/python/lancedb/namespace.py1001CODE
LOWpython/python/lancedb/streaming.py133CODE
LOWpython/python/lancedb/embeddings/imagebind.py62CODE
LOWpython/python/lancedb/embeddings/instructor.py124CODE
LOWpython/python/lancedb/rerankers/watsonx.py58CODE
LOWpython/python/lancedb/integrations/pyarrow.py27CODE
LOWpython/python/lancedb/integrations/pyarrow.py112CODE
LOWpython/python/lancedb/integrations/pyarrow.py166CODE
LOWpython/python/lancedb/integrations/pyarrow.py196CODE
LOWpython/python/lancedb/integrations/pyarrow.py210CODE
LOWpython/python/lancedb/integrations/pyarrow.py232CODE
LOWpython/python/lancedb/remote/db.py492CODE
LOWpython/python/lancedb/remote/table.py306CODE
LOWpython/python/lancedb/remote/table.py370CODE
LOWpython/python/lancedb/remote/table.py389CODE
Cross-Language Confusion4 hits · 22 pts
SeverityFileLineSnippetContext
HIGHpython/python/tests/test_fts.py687 assert rs.to_arrow().drop("_score").schema.equals(table.schema)CODE
HIGHpython/python/lancedb/table.py4075 # pc.not_equal(null, dim) also returns null. Use or_kleene so thatCOMMENT
HIGHpython/python/lancedb/table.py395 if reader.schema.equals(target_schema, check_metadata=True):CODE
HIGHpython/python/lancedb/table.py3893 if batch.schema.equals(output_schema, check_metadata=True):CODE
Structural Annotation Overuse12 hits · 22 pts
SeverityFileLineSnippetContext
LOWrust/lancedb/src/table/dataset.rs651 // Step 1: within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs656 // Step 2: still within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs661 // Step 3: sleep past the 1s boundaryCOMMENT
LOWrust/lancedb/src/table/dataset.rs664 // Step 4: interval expired — exactly 1 list, timer resetsCOMMENT
LOWrust/lancedb/src/table/dataset.rs669 // Step 5: 10 more calls — timer just reset, no lists (THIS is the regression test).COMMENT
LOW.agents/skills/lancedb-column-metadata/SKILL.md12## Step 0: Establish the connectionCOMMENT
LOW.agents/skills/lancedb-column-metadata/SKILL.md30## Step 1: Resolve the table identifierCOMMENT
LOW.agents/skills/lancedb-column-metadata/SKILL.md38## Step 2: Describe the tableCOMMENT
LOW.agents/skills/lancedb-column-metadata/SKILL.md74## Step 3: Generate metadataCOMMENT
LOW.agents/skills/lancedb-column-metadata/SKILL.md108## Step 4: Write the metadataCOMMENT
LOW.agents/skills/lancedb-column-metadata/SKILL.md151## Step 5: ConfirmCOMMENT
LOW.agents/skills/lancedb-branch-ops/SKILL.md10## Step 0: Establish the connectionCOMMENT
Modern Structural Boilerplate14 hits · 16 pts
SeverityFileLineSnippetContext
LOWpython/python/lancedb/index.py829__all__ = [CODE
LOWpython/python/lancedb/__init__.py456__all__ = [CODE
LOWpython/python/lancedb/table.py3781 def set_unenforced_primary_key(self, columns: Union[str, Iterable[str]]) -> None:CODE
LOWpython/python/lancedb/table.py3786 def set_lsm_write_spec(self, spec: "LsmWriteSpec") -> None:CODE
LOWpython/python/lancedb/table.py4421 async def set_lsm_write_spec(self, spec: "LsmWriteSpec") -> None:CODE
LOWpython/python/lancedb/streaming.py37logger = logging.getLogger(__name__)CODE
LOWpython/python/lancedb/dependencies.py245__all__ = [CODE
LOWpython/python/lancedb/expr.py30__all__ = ["Expr", "col", "lit", "func"]CODE
LOWpython/python/lancedb/embeddings/registry.py160 def set_var(self, name: str, value: str) -> None:CODE
LOWpython/python/lancedb/rerankers/__init__.py17__all__ = [CODE
LOWpython/python/lancedb/remote/__init__.py14__all__ = [CODE
LOWpython/python/lancedb/remote/table.py903 def set_unenforced_primary_key(self, columns: Union[str, Iterable[str]]) -> None:CODE
LOWpython/python/lancedb/remote/table.py907 def set_lsm_write_spec(self, spec: "LsmWriteSpec") -> None:CODE
LOWci/update_lance_dependency.py64def update_java_lance_core_version(repo_root: Path, version: str) -> None:CODE
Verbosity Indicators5 hits · 11 pts
SeverityFileLineSnippetContext
LOWrust/lancedb/src/table/dataset.rs651 // Step 1: within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs656 // Step 2: still within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs661 // Step 3: sleep past the 1s boundaryCOMMENT
LOWrust/lancedb/src/table/dataset.rs664 // Step 4: interval expired — exactly 1 list, timer resetsCOMMENT
LOWrust/lancedb/src/table/dataset.rs669 // Step 5: 10 more calls — timer just reset, no lists (THIS is the regression test).COMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWpython/python/lancedb/__init__.py50 # Check if region is provided in storage_optionsCOMMENT
LOWpython/python/lancedb/table.py2669 # Check if config has accelerator set and dispatch to pylanceCOMMENT
LOWpython/python/lancedb/table.py5251 # Set both to the minimum first to avoid min > max error.COMMENT
LOWpython/python/lancedb/embeddings/voyageai.py391 # Check if adding this text would exceed limitsCOMMENT
LOWpython/python/lancedb/embeddings/openai.py51 # Set true to use Azure OpenAI APICOMMENT
LOWci/set_lance_version.py123 # Check if this is a single-line or multi-line entryCOMMENT
LOW.github/actions/create-failure-issue/action.yml23 # Check if any job failedCOMMENT
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMRUST_THIRD_PARTY_LICENSES.html8702 <li><a href=" https://github.com/georust/robust ">robust 1.2.0</a></li>CODE
MEDIUMnodejs/RUST_THIRD_PARTY_LICENSES.html8265 <li><a href=" https://github.com/georust/robust ">robust 1.2.0</a></li>CODE
MEDIUMpython/RUST_THIRD_PARTY_LICENSES.html8695 <li><a href=" https://github.com/georust/robust ">robust 1.2.0</a></li>CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpython/python/lancedb/embeddings/gte_mlx_model.py137 # get converted embedding modelCOMMENT