Repository Analysis

lancedb/lancedb

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

6.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lancedb/lancedb, a Rust project with 11,307 GitHub stars. SynthScan v2.0 examined 270,263 lines of code across 639 source files, recording 1681 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 6.9 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.9
Adjusted Score
6.9
Raw Score
100%
Time Factor
2026-08-28
Last Push
11.3K
Stars
Rust
Language
270.3K
Lines of Code
639
Files
1.7K
Pattern Hits
2026-08-29
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 21MEDIUM 153LOW 1507

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 1681 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 Identifiers923 hits · 745 pts
SeverityFileLineSnippetContext
LOWnodejs/lancedb/sanitize.ts83function createSanitizationContext(): SanitizationContext {CODE
LOWnodejs/lancedb/sanitize.ts232function sanitizeStructWithContext(CODE
LOWnodejs/lancedb/sanitize.ts289function sanitizeTypedUnionWithContext(CODE
LOWnodejs/lancedb/sanitize.ts328function sanitizeFixedSizeListWithContext(CODE
LOWnodejs/lancedb/sanitize.ts386function sanitizeDictionaryWithContext(CODE
LOWnodejs/lancedb/sanitize.ts619function sanitizeSchemaWithContext(CODE
LOWnodejs/lancedb/arrow.ts642async function applyEmbeddingsFromMetadata(CODE
LOWnodejs/lancedb/arrow.ts925export async function fromRecordsToStreamBuffer(CODE
LOWnodejs/lancedb/arrow.ts1021export async function fromRecordBatchToStreamBuffer(CODE
LOWnodejs/lancedb/materialized_view.ts36export function validateNonNegativeInteger(CODE
LOWnodejs/lancedb/embedding/index.ts38function initializeBuiltInProviders() {CODE
LOWpython/python/tests/test_materialized_views.py25def test_create_refresh_and_query(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py44def test_definition_round_trips(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py57def test_incremental_refresh_after_append(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py71def test_incremental_refresh_after_update(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py84def test_legacy_storage_source_update_rebuilds(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py109def test_invalid_expression_fails_at_create(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py117async def test_async_create_refresh_and_open(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py148def test_source_requires_stable_row_ids(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py155def test_bare_select_names_are_quoted(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py170async def test_async_remote_is_refused_without_network():CODE
LOWpython/python/tests/test_materialized_views.py182def test_scalar_select_is_one_column(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py192async def test_async_scalar_select_is_one_column(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py220def test_namespace_connection_materialized_views(tmp_path):CODE
LOWpython/python/tests/test_materialized_views.py240async def test_async_namespace_connection_materialized_views(tmp_path):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.py212def create_tracking_namespace(CODE
LOWpython/python/tests/test_namespace_integration.py274def test_namespace_create_table_with_provider(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py331def test_namespace_open_table_with_provider(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py399def test_namespace_create_schema_only_with_provider(use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py456def test_namespace_credential_refresh_on_read(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py523def test_namespace_credential_refresh_on_write(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py587def test_namespace_overwrite_mode(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py655def test_namespace_multiple_tables(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_namespace_integration.py713def test_namespace_with_schema_only(s3_bucket: str, use_custom: bool):CODE
LOWpython/python/tests/test_merge_insert_lsm.py521def test_lsm_read_vector_postfilter_errors(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py531def test_lsm_read_projection_excludes_pk(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py540def test_lsm_read_fts_unmaintained_index_errors(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py61def test_lsm_merge_insert_bucket(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py77def test_lsm_merge_insert_unsharded(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py91def test_lsm_merge_insert_identity(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py106def test_lsm_merge_insert_use_lsm_false(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py119def test_lsm_merge_insert_use_lsm_true_without_spec_errors(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py135def test_lsm_merge_insert_validate_single_shard_off(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py147def test_lsm_merge_insert_no_spec_uses_standard_path(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py163def test_lsm_merge_insert_rejects_on_not_primary_key(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py174def test_lsm_merge_insert_rejects_non_upsert(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py201async def test_async_lsm_merge_insert(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py227def test_lsm_read_sees_active_memtable(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py244def test_lsm_read_dedup_newest_wins(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py258def test_lsm_read_without_spec_reads_base(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py272def test_lsm_read_unsupported_shape_errors_without_use_lsm_false(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py371def test_lsm_read_vector_sees_memtable(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py390def test_lsm_read_vector_prefilter(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py409def test_lsm_read_plain_prefilter(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py440def test_lsm_read_fts_sees_memtable(tmp_path):CODE
LOWpython/python/tests/test_merge_insert_lsm.py488def test_lsm_read_vector_unsupported_knobs_error(tmp_path):CODE
863 more matches not shown…
Decorative Section Separators102 hits · 338 pts
SeverityFileLineSnippetContext
MEDIUM.bumpversion.toml67# ------------STRING
MEDIUMdeny.toml24# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml26# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml119# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml121# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml159# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml161# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml186# ---------------------------------------------------------------------------COMMENT
MEDIUMdeny.toml188# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_rerankers.py662# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_rerankers.py664# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py135# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py297# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py299# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py368# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py370# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py13# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_watsonx.py94# ---------------------------------------------------------------------------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_expr.py637# ── datetime / timezone integration for lit() (issue #3262) ──────────────────COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py118# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py120# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py340# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py342# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py432# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py434# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py688# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py690# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1765# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1767# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1814# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1816# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1959# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py1961# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py2120# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py2122# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py3176# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/python/tests/test_elastic_dataloader.py3178# ---------------------------------------------------------------------------COMMENT
42 more matches not shown…
Over-Commented Block294 hits · 268 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.toml101 # https://rustsec.org/advisories/RUSTSEC-2026-0195COMMENT
LOWdeny.toml141 # CDLA-Permissive-2.0 is a permissive data license used by `webpki-roots`COMMENT
LOWdeny.toml161# ---------------------------------------------------------------------------COMMENT
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.rs41 /// always consistent.COMMENT
LOWnodejs/src/lib.rs61COMMENT
LOWnodejs/src/lib.rs81#[napi(object)]COMMENT
LOWnodejs/src/otel.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWnodejs/src/table.rs761 }COMMENT
LOWnodejs/src/table.rs781 ///COMMENT
LOWnodejs/src/table.rs1101#[napi(object)]COMMENT
LOWnodejs/src/table.rs1141 done: p.done(),COMMENT
LOWnodejs/src/table.rs1161 pub rename: Option<String>,COMMENT
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.py41 # TODO: test we can actually convert the model into data.COMMENT
LOWpython/python/tests/test_db.py481 tbl3 = await tmp_db_async.create_table("test", schema=schema, exist_ok=True)COMMENT
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/streaming.py521 # in the same process. Used by the observability properties when theCOMMENT
LOWpython/python/lancedb/streaming.py561COMMENT
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/table.rs281 /// Identity sharding — shard by the raw value of `column`.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/examples/bench_open_missing_table.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/lancedb/src/job.rs201 pub async fn cancel(&self) -> Result<()> {COMMENT
LOWrust/lancedb/src/database.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/lancedb/src/database.rs41}COMMENT
LOWrust/lancedb/src/database.rs281 /// Use `list_tables` instead for pagination supportCOMMENT
LOWrust/lancedb/src/database.rs361 fn as_any(&self) -> &dyn std::any::Any;COMMENT
LOWrust/lancedb/src/error.rs101 failure: JobFailure,COMMENT
LOWrust/lancedb/src/materialized_view.rs41/// physical creation of a view table, so a view dropped and recreated underCOMMENT
234 more matches not shown…
Self-Referential Comments44 hits · 131 pts
SeverityFileLineSnippetContext
MEDIUMpython/python/tests/test_db.py1157 # Create a tag for the current versionCOMMENT
MEDIUMpython/python/tests/test_db.py1226 # Create a table through the main db connectionCOMMENT
MEDIUMpython/python/tests/test_table.py3475 # Create a LanceDB table schema with a vector and a text columnCOMMENT
MEDIUMpython/python/tests/test_table.py3488 # Create a list of 10 unique english phrasesCOMMENT
MEDIUMpython/python/tests/test_table.py3505 # Create a fts indexCOMMENT
MEDIUMpython/python/tests/test_embeddings.py150 # Create a mock arrow table with the metadataCOMMENT
MEDIUMpython/python/tests/test_embeddings.py576 # 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.py1807 # 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.py289 # Create a permutation with shuffling (no seed)COMMENT
MEDIUMpython/python/tests/test_permutation.py328 # Create a permutation with shuffling using clumpsCOMMENT
MEDIUMpython/python/tests/test_permutation.py904 # Create a table and filter it to be emptyCOMMENT
MEDIUMpython/python/tests/test_s3.py138 # 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.py260 >>> # Create a permutationSTRING
MEDIUMpython/python/lancedb/table.py5883 # This function is likely to block, since it either calls an expensiveCOMMENT
MEDIUMpython/python/lancedb/table.py6068 # This method is used by the sync tableCOMMENT
MEDIUMpython/python/lancedb/table.py6078 # This method is used by the sync tableCOMMENT
MEDIUMpython/python/lancedb/namespace.py1617 >>> # 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 Imports118 hits · 108 pts
SeverityFileLineSnippetContext
LOWpython/python/tests/test_first_class_function_slice2.py4CODE
LOWpython/python/tests/test_table.py25CODE
LOWpython/python/tests/test_rerankers.py12CODE
LOWpython/python/lancedb/_blob.py6CODE
LOWpython/python/lancedb/db.py5CODE
LOWpython/python/lancedb/merge.py5CODE
LOWpython/python/lancedb/materialized_view.py7CODE
LOWpython/python/lancedb/materialized_view.py16CODE
LOWpython/python/lancedb/materialized_view.py18CODE
LOWpython/python/lancedb/materialized_view.py19CODE
LOWpython/python/lancedb/materialized_view.py19CODE
LOWpython/python/lancedb/query.py4CODE
LOWpython/python/lancedb/query.py60CODE
LOWpython/python/lancedb/query.py71CODE
LOWpython/python/lancedb/index.py7CODE
LOWpython/python/lancedb/job.py12CODE
LOWpython/python/lancedb/__init__.py15CODE
LOWpython/python/lancedb/__init__.py22CODE
LOWpython/python/lancedb/__init__.py22CODE
LOWpython/python/lancedb/__init__.py22CODE
LOWpython/python/lancedb/__init__.py22CODE
LOWpython/python/lancedb/__init__.py23CODE
LOWpython/python/lancedb/__init__.py23CODE
LOWpython/python/lancedb/__init__.py24CODE
LOWpython/python/lancedb/__init__.py24CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py25CODE
LOWpython/python/lancedb/__init__.py36CODE
LOWpython/python/lancedb/__init__.py36CODE
LOWpython/python/lancedb/__init__.py36CODE
LOWpython/python/lancedb/__init__.py41CODE
LOWpython/python/lancedb/__init__.py41CODE
LOWpython/python/lancedb/__init__.py44CODE
LOWpython/python/lancedb/__init__.py44CODE
LOWpython/python/lancedb/__init__.py44CODE
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.py33CODE
LOWpython/python/lancedb/table.py53CODE
LOWpython/python/lancedb/table.py182CODE
LOWpython/python/lancedb/table.py182CODE
LOWpython/python/lancedb/table.py201CODE
LOWpython/python/lancedb/table.py202CODE
LOWpython/python/lancedb/namespace.py11CODE
LOWpython/python/lancedb/namespace.py64CODE
LOWpython/python/lancedb/otel.py18CODE
LOWpython/python/lancedb/otel.py30CODE
LOWpython/python/lancedb/dependencies.py16CODE
58 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 Nesting74 hits · 56 pts
SeverityFileLineSnippetContext
LOWpython/python/tests/test_namespace_integration.py198CODE
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.py448CODE
LOWpython/python/tests/test_remote_db.py660CODE
LOWpython/python/tests/test_remote_db.py820CODE
LOWpython/python/tests/test_remote_db.py883CODE
LOWpython/python/tests/test_remote_db.py957CODE
LOWpython/python/tests/test_remote_db.py1102CODE
LOWpython/python/tests/test_remote_db.py2297CODE
LOWpython/python/tests/test_remote_db.py2436CODE
LOWpython/python/tests/test_remote_db.py453CODE
LOWpython/python/tests/test_remote_db.py664CODE
LOWpython/python/tests/test_remote_db.py825CODE
LOWpython/python/tests/test_remote_db.py892CODE
LOWpython/python/tests/test_remote_db.py961CODE
LOWpython/python/tests/test_remote_db.py1103CODE
LOWpython/python/tests/test_remote_db.py2298CODE
LOWpython/python/tests/test_remote_db.py2446CODE
LOWpython/python/tests/test_elastic_dataloader.py173CODE
LOWpython/python/tests/test_elastic_dataloader.py286CODE
LOWpython/python/tests/test_elastic_dataloader.py1593CODE
LOWpython/python/tests/test_elastic_dataloader.py1651CODE
LOWpython/python/tests/test_elastic_dataloader.py2428CODE
LOWpython/python/tests/test_elastic_dataloader.py2435CODE
LOWpython/python/lancedb/functions.py81CODE
LOWpython/python/lancedb/functions.py601CODE
LOWpython/python/lancedb/functions.py741CODE
LOWpython/python/lancedb/_blob.py267CODE
LOWpython/python/lancedb/db.py796CODE
LOWpython/python/lancedb/query.py953CODE
LOWpython/python/lancedb/query.py1026CODE
LOWpython/python/lancedb/query.py2820CODE
LOWpython/python/lancedb/query.py2971CODE
LOWpython/python/lancedb/pydantic.py208CODE
LOWpython/python/lancedb/pydantic.py256CODE
LOWpython/python/lancedb/pydantic.py329CODE
LOWpython/python/lancedb/common.py62CODE
LOWpython/python/lancedb/permutation.py956CODE
LOWpython/python/lancedb/table.py234CODE
LOWpython/python/lancedb/table.py647CODE
LOWpython/python/lancedb/table.py816CODE
LOWpython/python/lancedb/table.py4590CODE
LOWpython/python/lancedb/table.py4787CODE
LOWpython/python/lancedb/table.py846CODE
LOWpython/python/lancedb/table.py3226CODE
LOWpython/python/lancedb/table.py5784CODE
LOWpython/python/lancedb/table.py5984CODE
LOWpython/python/lancedb/namespace.py315CODE
LOWpython/python/lancedb/streaming.py722CODE
LOWpython/python/lancedb/streaming.py1478CODE
LOWpython/python/lancedb/streaming.py1610CODE
LOWpython/python/lancedb/streaming.py1816CODE
LOWpython/python/lancedb/streaming.py949CODE
LOWpython/python/lancedb/otel.py35CODE
LOWpython/python/lancedb/schema.py92CODE
LOWpython/python/lancedb/schema.py96CODE
LOWpython/python/lancedb/embeddings/siglip.py137CODE
14 more matches not shown…
Excessive Try-Catch Wrapping31 hits · 34 pts
SeverityFileLineSnippetContext
LOWpython/python/tests/test_namespace_integration.py208 except Exception:CODE
LOWpython/python/tests/test_fts.py588 except Exception:CODE
LOWpython/python/tests/test_fts.py595 except Exception:CODE
LOWpython/python/tests/test_fts.py451 except Exception:CODE
LOWpython/python/tests/test_fts.py482 except Exception:CODE
LOWpython/python/tests/test_fts.py517 except Exception:CODE
LOWpython/python/tests/test_fts.py524 except Exception:CODE
LOWpython/python/tests/test_embeddings.py504 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.py2016 except Exception as e:CODE
LOWpython/python/tests/test_elastic_dataloader.py2086 except Exception as exc:CODE
LOWpython/python/lancedb/functions.py679 except Exception as error:CODE
LOWpython/python/lancedb/query.py1071 except Exception as err:CODE
LOWpython/python/lancedb/query.py3030 except Exception as err:CODE
LOWpython/python/lancedb/scannable.py112 except Exception:CODE
LOWpython/python/lancedb/streaming.py878 except Exception as exc:CODE
LOWpython/python/lancedb/streaming.py901 except Exception as exc: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.py163 except Exception as e:CODE
LOWci/set_lance_version.py241 except Exception as e:CODE
AI Structural Patterns35 hits · 30 pts
SeverityFileLineSnippetContext
LOWpython/python/lancedb/functions.py983CODE
LOWpython/python/lancedb/functions.py997CODE
LOWpython/python/lancedb/db.py291CODE
LOWpython/python/lancedb/db.py1089CODE
LOWpython/python/lancedb/db.py1723CODE
LOWpython/python/lancedb/db.py1951CODE
LOWpython/python/lancedb/__init__.py98CODE
LOWpython/python/lancedb/__init__.py295CODE
LOWpython/python/lancedb/__init__.py422CODE
LOWpython/python/lancedb/table.py1107CODE
LOWpython/python/lancedb/table.py1129CODE
LOWpython/python/lancedb/table.py1323CODE
LOWpython/python/lancedb/table.py2475CODE
LOWpython/python/lancedb/table.py2959CODE
LOWpython/python/lancedb/table.py2983CODE
LOWpython/python/lancedb/table.py3452CODE
LOWpython/python/lancedb/table.py3892CODE
LOWpython/python/lancedb/namespace.py404CODE
LOWpython/python/lancedb/namespace.py538CODE
LOWpython/python/lancedb/namespace.py998CODE
LOWpython/python/lancedb/namespace.py1106CODE
LOWpython/python/lancedb/streaming.py385CODE
LOWpython/python/lancedb/embeddings/imagebind.py55CODE
LOWpython/python/lancedb/embeddings/instructor.py123CODE
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.py503CODE
LOWpython/python/lancedb/remote/table.py342CODE
LOWpython/python/lancedb/remote/table.py412CODE
LOWpython/python/lancedb/remote/table.py431CODE
Cross-Language Confusion5 hits · 28 pts
SeverityFileLineSnippetContext
HIGHpython/python/tests/test_fts.py782 assert rs.to_arrow().drop("_score").schema.equals(table.schema)CODE
HIGHpython/python/tests/test_table.py1949 assert result.equals(source)CODE
HIGHpython/python/lancedb/table.py4649 # pc.not_equal(null, dim) also returns null. Use or_kleene so thatCOMMENT
HIGHpython/python/lancedb/table.py415 if reader.schema.equals(target_schema, check_metadata=True):CODE
HIGHpython/python/lancedb/table.py4467 if batch.schema.equals(output_schema, check_metadata=True):CODE
Modern Structural Boilerplate18 hits · 20 pts
SeverityFileLineSnippetContext
LOWpython/python/lancedb/functions.py1082__all__ = [CODE
LOWpython/python/lancedb/index.py874__all__ = [CODE
LOWpython/python/lancedb/__init__.py548__all__ = [CODE
LOWpython/python/lancedb/table.py4333 def set_unenforced_primary_key(self, columns: Union[str, Iterable[str]]) -> None:CODE
LOWpython/python/lancedb/table.py4338 def set_lsm_write_spec(self, spec: "LsmWriteSpec") -> None:CODE
LOWpython/python/lancedb/table.py5036 async def set_lsm_write_spec(self, spec: "LsmWriteSpec") -> None:CODE
LOWpython/python/lancedb/streaming.py49logger = logging.getLogger(__name__)CODE
LOWpython/python/lancedb/streaming.py973 def _update_stats(*, idle: bool = False) -> None:CODE
LOWpython/python/lancedb/streaming.py1077 def _update_progress_stats() -> None: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/embeddings/__init__.py28__all__ = [CODE
LOWpython/python/lancedb/rerankers/__init__.py20__all__ = [CODE
LOWpython/python/lancedb/remote/__init__.py17__all__ = [CODE
LOWpython/python/lancedb/remote/table.py1009 def set_unenforced_primary_key(self, columns: Union[str, Iterable[str]]) -> None:CODE
LOWpython/python/lancedb/remote/table.py1013 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.rs712 // Step 1: within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs717 // Step 2: still within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs722 // Step 3: sleep past the 1s boundaryCOMMENT
LOWrust/lancedb/src/table/dataset.rs725 // Step 4: interval expired — exactly 1 list, timer resetsCOMMENT
LOWrust/lancedb/src/table/dataset.rs730 // Step 5: 10 more calls — timer just reset, no lists (THIS is the regression test).COMMENT
Structural Annotation Overuse5 hits · 11 pts
SeverityFileLineSnippetContext
LOWrust/lancedb/src/table/dataset.rs712 // Step 1: within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs717 // Step 2: still within interval — no listCOMMENT
LOWrust/lancedb/src/table/dataset.rs722 // Step 3: sleep past the 1s boundaryCOMMENT
LOWrust/lancedb/src/table/dataset.rs725 // Step 4: interval expired — exactly 1 list, timer resetsCOMMENT
LOWrust/lancedb/src/table/dataset.rs730 // 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__.py84 # Check if region is provided in storage_optionsCOMMENT
LOWpython/python/lancedb/table.py3120 # Check if config has accelerator set and dispatch to pylanceCOMMENT
LOWpython/python/lancedb/table.py6012 # 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