AI Slop Code RIsk Monitor

cocoindex-io/cocoindex

Incremental engine for long horizon agents 🌟 Star if you like it!

24.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for cocoindex-io/cocoindex, a Rust project with 11,667 GitHub stars. SynthScan examined 248,517 lines of code across 906 source files, recording 3391 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 24.5 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

24.5
Adjusted Signal
24.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
11.7K
Stars
Rust
Language
248.5K
Lines of Code
906
Files
3.4K
Pattern Hits
2026-10-12
Scan Date
0.16
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 28.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1756 finding(s).

Hallucinated Dependency & Supply Chain Risk 5.8/100 · LOW

Are imports declared and package/API names verified? 311 finding(s).

Agent Over-Engineering Ratio 65.6/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 2670 finding(s).

PR Review Velocity Impact 71.0/100 · HIGH

Which changes need focused human review? 3391 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 141MEDIUM 1028LOW 2222

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3391 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators1017 hits · 3332 pts
SeverityFileLineSnippetContext
MEDIUM⚡python/cocoindex/cli.py38# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/cli.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py512# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/cli.py514# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/cli.py557# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/cli.py559# ---------------------------------------------------------------------------STRING
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py78# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py80# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py88# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py1208# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py1210# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py1217# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py1219# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py1572# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/neo4j/_target.py1574# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py200# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py202# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py249# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py251# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py339# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py356# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py358# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py463# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py465# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py598# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py600# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py743# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py745# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py868# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py870# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py969# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py971# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1302# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1304# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1401# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1403# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/surrealdb/_target.py1221# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/surrealdb/_target.py1223# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/surrealdb/_target.py1230# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/surrealdb/_target.py1232# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/surrealdb/_target.py1595# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/cocoindex/connectors/surrealdb/_target.py1597# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py73# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py99# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py101# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py163# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py198# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py200# ---------------------------------------------------------------------------COMMENT
957 more matches not shown…
Hyper-Verbose Identifiers1338 hits · 1174 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/user_app_loader.py36def _import_as_package_module(CODE
LOWpython/cocoindex/cli.py857async def _show_target_states_from_app(STRING
LOWpython/cocoindex/cli.py868async def _show_target_states_from_database(STRING
LOWpython/cocoindex/connectors/neo4j/_cypher.py135def build_relationship_upsert(CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py163def build_relationship_delete(rel_type: str, pk_fields: Sequence[str]) -> str:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py178def build_relationship_delete_all(rel_type: str) -> str:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py214def build_relationship_index_create(CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py229def build_relationship_index_drop(name: str) -> str:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py265def build_vector_index_create(CODE
LOWpython/cocoindex/connectors/neo4j/_target.py417 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/neo4j/_target.py942def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py462 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py959def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py109def build_relationship_upsert(CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py137def build_relationship_delete(rel_type: str, pk_fields: Sequence[str]) -> str:CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py153def build_relationship_delete_all(rel_type: str) -> str:CODE
LOW⚡python/cocoindex/connectors/falkordb/_cypher.py178def build_relationship_index_create(rel_type: str, fields: Sequence[str]) -> str:CODE
LOW⚡python/cocoindex/connectors/falkordb/_cypher.py186def build_relationship_index_drop(rel_type: str, fields: Sequence[str]) -> str:CODE
LOW⚡python/cocoindex/connectors/falkordb/_cypher.py194def build_vector_index_create(CODE
LOWpython/cocoindex/connectors/falkordb/_target.py377 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/falkordb/_target.py891def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/localfs/_target.py90def _apply_actions_with_child(CODE
LOW⚡python/cocoindex/connectors/doris/_target.py493def _convert_to_key_column_type(doris_type: str) -> str:CODE
LOW⚡python/cocoindex/connectors/doris/_target.py561def _generate_stream_load_label() -> str:CODE
LOWpython/cocoindex/connectors/doris/_target.py377 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/doris/_target.py738def _generate_create_table_ddl(CODE
LOWpython/cocoindex/connectors/doris/_target.py991def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/doris/_target.py1034def _is_benign_column_ddl_error(e: Exception, *, expect_exists: bool) -> bool:CODE
LOWpython/cocoindex/connectors/doris/_target.py1382def build_vector_search_query(CODE
LOW⚡python/cocoindex/connectors/zvec/_target.py91def _validate_collection_name(name: str) -> None:CODE
LOWpython/cocoindex/connectors/zvec/_target.py763def _apply_collection_actions(CODE
LOWpython/cocoindex/connectors/zvec/_target.py969def declare_collection_target(CODE
LOWpython/cocoindex/connectors/bigquery/_target.py157 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/bigquery/_target.py611def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/snowflake/_target.py150 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/snowflake/_target.py511def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/sqlite/_target.py367 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/sqlite/_target.py643def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/postgres/_target.py395 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/postgres/_target.py936 async def _execute_values_upsert_chunk(self, chunk: list[_RowValue]) -> None:CODE
LOWpython/cocoindex/connectors/postgres/_target.py952 async def _execute_unnest_upsert_chunk(CODE
LOWpython/cocoindex/connectors/postgres/_target.py1117def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/postgres/_target.py1236 async def _ensure_pgvector_extension(CODE
LOWpython/cocoindex/connectors/postgres/_target.py1545 def declare_sql_command_attachment(CODE
LOWpython/cocoindex/connectors/kafka/_target.py274def declare_kafka_topic_target(CODE
LOWpython/cocoindex/connectors/iggy/_source.py289 async def _resolve_initial_high_watermark(self) -> int:CODE
LOWpython/cocoindex/connectors/iggy/_target.py294def declare_iggy_topic_target(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py131def _resolve_sparse_vector_def(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py596def declare_collection_target(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py677def _sparse_modifier_from_spec(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py712def _sparse_vector_params_from_def(CODE
LOWpython/cocoindex/connectors/azure_blob/_source.py107def _metadata_from_properties(props: _BlobProperties) -> file.FileMetadata:CODE
LOWpython/cocoindex/connectors/lancedb/_target.py286 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/lancedb/_target.py380def _count_prunable_old_versions(versions: Sequence[dict[str, Any]]) -> int:CODE
LOWpython/cocoindex/connectors/lancedb/_target.py464 def _legacy_fingerprint_for_null_backfill(CODE
LOWpython/cocoindex/connectors/lancedb/_target.py951def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/_internal/runner.py401def _warn_subprocess_multi_gpu() -> None:CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py55def _make_state_deserialize_fn(CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py196def register_memo_key_function(CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py211def register_not_memo_keyable(typ: type) -> None:CODE
1278 more matches not shown…
Cross-File Repetition79 hits · 395 pts
SeverityFileLineSnippetContext
HIGHpython/cocoindex/connectors/surrealdb/_target.py0declare a snowflake table target and return a pending tabletarget.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0declare a snowflake table target and return a pending tabletarget.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0declare a snowflake table target and return a pending tabletarget.STRING
HIGHpython/cocoindex/connectors/surrealdb/_target.py0mount a snowflake table target and return a ready-to-use tabletarget.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0mount a snowflake table target and return a ready-to-use tabletarget.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0mount a snowflake table target and return a ready-to-use tabletarget.STRING
HIGHpython/cocoindex/connectors/doris/_target.py0handler for row-level target states within a table.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0handler for row-level target states within a table.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0handler for row-level target states within a table.STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0handler for row-level target states within a table.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0handler for row-level target states within a table.STRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0handler for row-level target states within a table.STRING
HIGHpython/cocoindex/connectors/doris/_target.py0apply table actions (ddl) and fulfill the child row handlers.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0apply table actions (ddl) and fulfill the child row handlers.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0apply table actions (ddl) and fulfill the child row handlers.STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0apply table actions (ddl) and fulfill the child row handlers.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0apply table actions (ddl) and fulfill the child row handlers.STRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0apply table actions (ddl) and fulfill the child row handlers.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0convert a record type to a dict of column name -> columndef.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0convert a record type to a dict of column name -> columndef.STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0convert a record type to a dict of column name -> columndef.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0convert a record type to a dict of column name -> columndef.STRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0convert a record type to a dict of column name -> columndef.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0primary-key column signature used for table-level main tracking record.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0primary-key column signature used for table-level main tracking record.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0primary-key column signature used for table-level main tracking record.STRING
HIGHpython/cocoindex/connectors/bigquery/_target.py0per-non-pk column tracking record used for incremental alter table operations.STRING
HIGHpython/cocoindex/connectors/snowflake/_target.py0per-non-pk column tracking record used for incremental alter table operations.STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0per-non-pk column tracking record used for incremental alter table operations.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0per-non-pk column tracking record used for incremental alter table operations.STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0create a tableschema from pre-resolved column definitions. for constructing from a record type, use the async classmethoSTRING
HIGHpython/cocoindex/connectors/postgres/_target.py0create a tableschema from pre-resolved column definitions. for constructing from a record type, use the async classmethoSTRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0create a tableschema from pre-resolved column definitions. for constructing from a record type, use the async classmethoSTRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0apply row actions (upserts and deletes) to the database.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0apply row actions (upserts and deletes) to the database.STRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0apply row actions (upserts and deletes) to the database.STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0key identifying a table: (database_key, pg_schema_name, table_name).STRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0key identifying a table: (database_key, pg_schema_name, table_name).STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0key identifying a table: (database_key, pg_schema_name, table_name).STRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0a target for writing rows to a lancedb table. the table is managed as a target state, with the scope used to scope the tSTRING
HIGHpython/cocoindex/connectors/postgres/_target.py0a target for writing rows to a lancedb table. the table is managed as a target state, with the scope used to scope the tSTRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0a target for writing rows to a lancedb table. the table is managed as a target state, with the scope used to scope the tSTRING
HIGHpython/cocoindex/connectors/sqlite/_target.py0convert a row (dict or object) into dict[str, any] using the schema columns, and apply column encoders for both dict andSTRING
HIGHpython/cocoindex/connectors/postgres/_target.py0convert a row (dict or object) into dict[str, any] using the schema columns, and apply column encoders for both dict andSTRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0convert a row (dict or object) into dict[str, any] using the schema columns, and apply column encoders for both dict andSTRING
HIGHdocs/src/content/example-posts/text-embedding.md0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHdocs/src/content/example-posts/pdf-embedding.md0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHexamples/text_embedding/main.py0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHexamples/amazon_s3_embedding/main.py0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHexamples/gdrive_text_embedding/main.py0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHexamples/azure_blob_embedding/main.py0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHexamples/pdf_embedding/main.py0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHexamples/oci_object_storage_embedding/main.py0select filename, text, embedding <=> $1 as distance from "{pg_schema_name}"."{table_name}" order by distance asc limit $STRING
HIGHdocs/src/content/example-posts/patient-intake-dspy.md0extract structured patient information from a medical intake form image.STRING
HIGHexamples/patient_intake_extraction_dspy/README.md0extract structured patient information from a medical intake form image.STRING
HIGHexamples/patient_intake_extraction_dspy/main.py0extract structured patient information from a medical intake form image.STRING
HIGHdocs/src/content/example-posts/patient-intake-dspy.md0process a patient intake form pdf and extract structured information.STRING
HIGHdocs/src/content/example-posts/patient-intake-baml.md0process a patient intake form pdf and extract structured information.STRING
HIGHexamples/patient_intake_extraction_baml/main.py0process a patient intake form pdf and extract structured information.STRING
HIGHexamples/patient_intake_extraction_dspy/main.py0process a patient intake form pdf and extract structured information.STRING
19 more matches not shown…
Over-Commented Block264 hits · 264 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/cli.py421 # localfs.declare_dir_target,COMMENT
LOWpython/cocoindex/_internal/live_component.py41_M_contra = TypeVar("_M_contra", contravariant=True)COMMENT
LOWpython/cocoindex/_internal/live_component.py61# Task running `process()` would inherit its parent Task's `Context`COMMENT
LOWpython/cocoindex/ops/litellm.py381 # out a 30s backoff would otherwise hold a slot it isn't using.COMMENT
LOWpython/cocoindex/ops/litellm.py441 except Exception as e:COMMENT
LOW…on/tests/core/test_context_tracked_state_validation.py421 env.context_provider.provide(COMP_KEY, StatefulEmbedder("ec", 10))COMMENT
LOWrust/py/src/code.rs21 #[pyo3(get)]COMMENT
LOWrust/py/src/runtime.rs161 })?COMMENT
LOWrust/py/src/fingerprint.rs1use crate::prelude::*;COMMENT
LOWrust/py/src/target_state.rs41/// sinks constructed from the same callback share one batching identity (theCOMMENT
LOWrust/py/src/memo_fingerprint.rs281 Ok(false)COMMENT
LOWrust/py/src/batching.rs1//! Python bindings for batching infrastructure.COMMENT
LOWrust/py/src/batching.rs61 })COMMENT
LOWrust/py/src/batching.rs101 ///COMMENT
LOWrust/py/src/function.rs61 let fp_obj = Py::new(py, PyFingerprint(*fp))?;COMMENT
LOWrust/py/src/ops.rs81COMMENT
LOWrust/py/src/ops.rs261 ///COMMENT
LOWrust/py/src/ops.rs301 #[pyo3(get)]COMMENT
LOWrust/py/src/context.rs61 /// resolves asynchronously once the members finish.COMMENT
LOWrust/py/src/context.rs101 .next_id(key.as_ref().map(|k| &k.0), deadline)COMMENT
LOWrust/py/src/context.rs121 /// Either way the `StoredValue` cell is returned directly, so the PythonCOMMENT
LOWrust/code_ast/src/lib.rs1//! Shared tree-sitter foundation for CocoIndex code/text operations.COMMENT
LOWrust/code_ast/src/hazards.rs1//! Tree-trust hazards: a pre-pass over a parsed AST detecting trees whose topCOMMENT
LOWrust/code_ast/src/source.rs21 /// The parser returned no tree. Rare (cancellation/timeout-class failures);COMMENT
LOWrust/code_ast/src/source.rs41/// grammar. A consumer that resolves languages through its own table (e.g. aCOMMENT
LOWrust/code_ast/src/elements/types.rs1//! Public output types for code-element extraction.COMMENT
LOWrust/code_ast/src/elements/config.rs21 /// Default normalized [`DeclarationKind`] for this node type, before language refinementCOMMENT
LOWrust/code_ast/src/elements/config.rs41#[derive(Debug, Clone, Serialize, Deserialize)]COMMENT
LOWrust/code_ast/src/elements/hooks.rs61 /// Refine the normalized [`DeclarationKind`] for grammars where one AST node type coversCOMMENT
LOWrust/code_ast/src/view/render.rs41/// A zero-length Frame segment at `pos` whose `summary` renders `text`.COMMENT
LOWrust/code_ast/src/view/mod.rs41 pub kind: SegmentKind,COMMENT
LOWrust/code_ast/src/view/frames.rs1//! Context frames: one-line headers identifying the structures enclosing a span.COMMENT
LOWrust/core/src/inspect/db_inspect.rs101/// `StableKey`s via the inverted owner index + the owner's tracking info,COMMENT
LOWrust/core/src/state/db_schema.rs21/// `UserState*` keyspace but are isolated by a discriminant byte so theyCOMMENT
LOWrust/core/src/state/db_schema.rs161 StablePath(StablePath, StablePathEntryKey),COMMENT
LOWrust/core/src/state/db_schema.rs281 /// isn't part of the memo key. See `TargetProviderDeps`.COMMENT
LOWrust/core/src/state/db_schema.rs301COMMENT
LOWrust/core/src/state/db_schema.rs361}COMMENT
LOWrust/core/src/state/db_schema.rs401 ///COMMENT
LOWrust/core/src/state_store/submit_session.rs1//! Per-component submit lifecycle on the state-store side: the engineCOMMENT
LOWrust/core/src/state_store/submit_session.rs21//! `clear_stage_marker` are inherent methods on `AppStore` (the per-appCOMMENT
LOWrust/core/src/state_store/submit_session.rs41//! AppStore::precommit(component_path,COMMENT
LOWrust/core/src/state_store/submit_session.rs81use crate::state::target_state_path::TargetStatePath;COMMENT
LOWrust/core/src/state_store/submit_session.rs101 /// blob's `pending_process_token` field.COMMENT
LOWrust/core/src/state_store/submit_session.rs121}COMMENT
LOWrust/core/src/state_store/submit_session.rs141 /// - `Some(self_path)` — `__target` already held self (crash-recoveryCOMMENT
LOWrust/core/src/state_store/submit_session.rs161 /// The owner's `pending_process_token` from its tracking-info blob.COMMENT
LOWrust/core/src/state_store/submit_session.rs181 pub preempted_owner_updates: BTreeMap<StablePath, Vec<u8>>,COMMENT
LOWrust/core/src/state_store/submit_session.rs321// ---------------------------------------------------------------------------COMMENT
LOWrust/core/src/state_store/submit_session.rs341 /// target `StateKind::Regular` — they carry the per-build `coco.use_state`COMMENT
LOWrust/core/src/state_store/submit_session.rs361/// deltas + tombstones — see [`reconcile_child_existence`].COMMENT
LOWrust/core/src/state_store/submit_session.rs381 /// Phase 2 driver. Opens a batched precommit WTxn, runs `callback`COMMENT
LOWrust/core/src/state_store/submit_session.rs581/// * declared-not-present → write `__cex` row, recurse into Directory.COMMENT
LOWrust/core/src/state_store/app_store.rs1//! Per-app handle within a [`Storage`](super::Storage).COMMENT
LOWrust/core/src/state_store/storage.rs81 DEFAULT_MAP_SIZECOMMENT
LOWrust/core/src/state_store/storage.rs121 env: Arc<EnvSlot>,COMMENT
LOWrust/core/src/state_store/storage.rs161 }COMMENT
LOWrust/core/src/state_store/storage.rs181 /// thread from start to finish — see [`Runner::run`].COMMENT
LOWrust/core/src/state_store/storage.rs441 /// `Box::pin(async move { … })`). Multiple concurrent callers' bodies areCOMMENT
LOWrust/core/src/state_store/storage.rs461 /// return value (or a shared slot each run overwrites), never byCOMMENT
204 more matches not shown…
Unused Imports302 hits · 257 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/engine_object.py5CODE
LOWpython/cocoindex/engine_object.py8CODE
LOWpython/cocoindex/__init__.py6CODE
LOWpython/cocoindex/__init__.py7CODE
LOWpython/cocoindex/__init__.py13CODE
LOWpython/cocoindex/_version_check.py1CODE
LOWpython/cocoindex/inspect.py2CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py15CODE
LOWpython/cocoindex/connectors/neo4j/__init__.py2CODE
LOWpython/cocoindex/connectors/surrealdb/__init__.py2CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py12CODE
LOWpython/cocoindex/connectors/falkordb/_target.py39CODE
LOWpython/cocoindex/connectors/falkordb/__init__.py2CODE
LOWpython/cocoindex/connectors/localfs/_source.py3CODE
LOWpython/cocoindex/connectors/localfs/_target.py3CODE
LOWpython/cocoindex/connectors/localfs/_common.py3CODE
LOWpython/cocoindex/connectors/localfs/__init__.py2CODE
LOWpython/cocoindex/connectors/localfs/__init__.py5CODE
LOWpython/cocoindex/connectors/localfs/__init__.py8CODE
LOWpython/cocoindex/connectors/amazon_s3/_source.py10CODE
LOWpython/cocoindex/connectors/amazon_s3/__init__.py2CODE
LOWpython/cocoindex/connectors/doris/__init__.py2CODE
LOWpython/cocoindex/connectors/valkey/_target.py3CODE
LOWpython/cocoindex/connectors/valkey/__init__.py2CODE
LOWpython/cocoindex/connectors/zvec/__init__.py2CODE
LOWpython/cocoindex/connectors/bigquery/__init__.py2CODE
LOWpython/cocoindex/connectors/snowflake/__init__.py2CODE
LOWpython/cocoindex/connectors/sqlite/__init__.py2CODE
LOWpython/cocoindex/connectors/postgres/_source.py7CODE
LOWpython/cocoindex/connectors/postgres/__init__.py3CODE
LOWpython/cocoindex/connectors/postgres/__init__.py4CODE
LOWpython/cocoindex/connectors/kafka/_source.py13CODE
LOWpython/cocoindex/connectors/kafka/_target.py9CODE
LOWpython/cocoindex/connectors/kafka/__init__.py2CODE
LOWpython/cocoindex/connectors/kafka/__init__.py3CODE
LOWpython/cocoindex/connectors/iggy/_source.py9CODE
LOWpython/cocoindex/connectors/iggy/_target.py9CODE
LOWpython/cocoindex/connectors/iggy/__init__.py2CODE
LOWpython/cocoindex/connectors/iggy/__init__.py3CODE
LOWpython/cocoindex/connectors/qdrant/_target.py9CODE
LOWpython/cocoindex/connectors/qdrant/__init__.py2CODE
LOWpython/cocoindex/connectors/turbopuffer/_target.py13CODE
LOWpython/cocoindex/connectors/turbopuffer/__init__.py2CODE
LOW…hon/cocoindex/connectors/oci_object_storage/_source.py15CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py1CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py1CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py1CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py1CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py1CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py1CODE
LOWpython/cocoindex/connectors/azure_blob/_source.py3CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py1CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py2CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py3CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py4CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py5CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py6CODE
LOWpython/cocoindex/connectors/lancedb/__init__.py2CODE
LOWpython/cocoindex/connectors/google_drive/_source.py7CODE
LOWpython/cocoindex/connectors/google_drive/__init__.py2CODE
242 more matches not shown…
Empty Error Handlers46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHpython/cocoindex/connectors/localfs/_source.py200except TypeError:CODE
HIGHpython/cocoindex/connectors/localfs/_source.py204except TypeError:CODE
HIGHpython/cocoindex/connectors/doris/_target.py203except ImportError:CODE
HIGHpython/cocoindex/connectors/doris/_target.py213except ImportError:CODE
HIGHpython/cocoindex/connectors/sqlite/_target.py825except sqlite3.OperationalError:CODE
HIGHpython/cocoindex/connectors/sqlite/_target.py859except sqlite3.OperationalError:CODE
HIGHpython/cocoindex/connectors/qdrant/_target.py393except Exception:CODE
HIGHpython/cocoindex/connectors/turbopuffer/_target.py403except NotFoundError:CODE
HIGHpython/cocoindex/connectors/lancedb/_target.py1066except (OSError, ValueError):CODE
HIGHpython/cocoindex/_internal/runner.py141except Exception:CODE
HIGHpython/cocoindex/_internal/serde.py98except ImportError:CODE
HIGHpython/cocoindex/_internal/serde.py127except ImportError:CODE
HIGHpython/cocoindex/_internal/api.py711except RuntimeError:CODE
HIGHpython/cocoindex/_internal/context_keys.py57except RuntimeError:CODE
HIGHpython/cocoindex/_internal/environment.py580except Exception:CODE
HIGHpython/cocoindex/_internal/environment.py599except Exception:CODE
HIGHpython/cocoindex/_internal/environment.py408except StopAsyncIteration:CODE
HIGHpython/cocoindex/_internal/environment.py422except StopIteration:CODE
HIGHpython/cocoindex/connectorkits/async_adapters.py136except RuntimeError:CODE
HIGHpython/cocoindex/connectorkits/async_adapters.py95except _queue.Empty:CODE
HIGHpython/cocoindex/connectorkits/async_adapters.py179except _queue.Empty:CODE
HIGHpython/cocoindex/ops/sentence_transformers.py49except Exception: # pragma: no cover - defensiveCODE
HIGHpython/tests/connectors/test_qdrant_target.py480except Exception:CODE
HIGHpython/tests/connectors/test_turbopuffer_target.py272except Exception:CODE
HIGHpython/tests/connectors/test_kafka_source.py218except asyncio.CancelledError:CODE
HIGHpython/tests/connectors/test_kafka_source.py514except asyncio.CancelledError:CODE
HIGHpython/tests/connectors/test_localfs_live.py128except asyncio.CancelledError:CODE
HIGHpython/tests/connectors/test_localfs_live.py174except asyncio.CancelledError:CODE
HIGHpython/tests/connectors/test_localfs_live.py211except asyncio.CancelledError:CODE
HIGHpython/tests/connectors/test_localfs_live.py238except asyncio.CancelledError:CODE
HIGHpython/tests/connectors/test_valkey_target.py121except Exception:CODE
HIGHpython/tests/connectors/test_surrealdb_target.py182except Exception:CODE
HIGHpython/tests/connectors/test_surrealdb_target.py186except Exception:CODE
HIGHpython/tests/connectors/test_surrealdb_target.py190except Exception:CODE
HIGHpython/tests/connectors/test_falkordb_target.py577except Exception: # noqa: BLE001CODE
HIGHpython/tests/core/test_auto_refresh.py114except Exception:CODE
HIGHpython/tests/core/test_auto_refresh.py175except Exception:CODE
HIGHpython/tests/core/test_concurrency_control.py679except Exception:CODE
HIGHpython/tests/core/test_live_component.py1450except Exception:CODE
HIGHpython/tests/core/test_cancellation.py70except Exception:CODE
HIGHpython/tests/core/test_cancellation.py115except Exception:CODE
HIGHpython/tests/core/test_app_drop.py280except Exception:CODE
HIGHpython/tests/resources/test_live_map.py490except asyncio.CancelledError:CODE
HIGHpython/tests/resources/test_live_map.py353except asyncio.CancelledError:CODE
HIGHpython/tests/resources/test_live_map.py310except asyncio.CancelledError:CODE
HIGHpython/tests/internal/test_memo_fingerprint.py188except TypeError:CODE
Modern Structural Boilerplate99 hits · 96 pts
SeverityFileLineSnippetContext
LOW⚡python/cocoindex/cli.py43def _setup_logging() -> None:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py20__all__ = [CODE
LOW⚡python/cocoindex/connectors/neo4j/_target.py1576__all__ = [CODE
LOW⚡python/cocoindex/connectors/surrealdb/_target.py1599__all__ = [CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py17__all__ = [CODE
LOW⚡python/cocoindex/connectors/falkordb/_target.py1600__all__ = [CODE
LOWpython/cocoindex/connectors/localfs/_source.py403__all__ = ["walk_dir", "File", "DirWalker"]CODE
LOWpython/cocoindex/connectors/localfs/_target.py500__all__ = [CODE
LOWpython/cocoindex/connectors/localfs/_common.py78__all__ = [CODE
LOWpython/cocoindex/connectors/amazon_s3/_source.py12__all__ = [CODE
LOWpython/cocoindex/connectors/doris/_target.py1438__all__ = [CODE
LOWpython/cocoindex/connectors/valkey/_target.py23logger = logging.getLogger(__name__)CODE
LOWpython/cocoindex/connectors/valkey/_target.py770__all__ = [CODE
LOWpython/cocoindex/connectors/zvec/_target.py997__all__ = [CODE
LOWpython/cocoindex/connectors/bigquery/_target.py993__all__ = [CODE
LOWpython/cocoindex/connectors/snowflake/_target.py898__all__ = [CODE
LOWpython/cocoindex/connectors/sqlite/_target.py1397__all__ = [CODE
LOWpython/cocoindex/connectors/postgres/_source.py255__all__ = [CODE
LOWpython/cocoindex/connectors/postgres/_target.py63logger = logging.getLogger(__name__)CODE
LOWpython/cocoindex/connectors/postgres/_target.py1697__all__ = [CODE
LOWpython/cocoindex/connectors/kafka/_source.py512__all__ = [CODE
LOWpython/cocoindex/connectors/kafka/_target.py324__all__ = [CODE
LOWpython/cocoindex/connectors/iggy/_source.py583__all__ = [CODE
LOWpython/cocoindex/connectors/iggy/_target.py364__all__ = [CODE
LOWpython/cocoindex/connectors/qdrant/_target.py767__all__ = [CODE
LOWpython/cocoindex/connectors/turbopuffer/_target.py581__all__ = [CODE
LOW…hon/cocoindex/connectors/oci_object_storage/_source.py17__all__ = [CODE
LOW…on/cocoindex/connectors/oci_object_storage/__init__.py10__all__ = [CODE
LOWpython/cocoindex/connectors/azure_blob/_source.py5__all__ = [CODE
LOWpython/cocoindex/connectors/azure_blob/__init__.py8__all__ = [CODE
LOWpython/cocoindex/connectors/lancedb/_target.py1528__all__ = [CODE
LOWpython/cocoindex/connectors/google_drive/_source.py264__all__ = [CODE
LOWpython/cocoindex/_internal/rwlock.py9__all__ = ["RWLock", "RWLockReadGuard", "RWLockWriteGuard"]CODE
LOWpython/cocoindex/_internal/batching.py28__all__ = ["RetryWithSmallerBatch"]CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py470__all__ = [CODE
LOWpython/cocoindex/_internal/inspect_api.py158__all__ = [CODE
LOW⚡python/cocoindex/_internal/api.py897__all__ = [CODE
LOWpython/cocoindex/_internal/context_keys.py160 def set_core_env(self, core_env: core.Environment) -> None:CODE
LOWpython/cocoindex/_internal/live_component.py292 async def update_full(self) -> None:CODE
LOWpython/cocoindex/_internal/live_component.py519 async def update_all(self) -> None:CODE
LOWpython/cocoindex/_internal/environment.py140 def set_exception_handler(self, handler: ExceptionHandler) -> None:CODE
LOWpython/cocoindex/connectorkits/fingerprint.py41__all__ = [CODE
LOWpython/cocoindex/connectorkits/statediff.py22__all__ = [CODE
LOWpython/cocoindex/connectorkits/__init__.py7__all__ = ["SingleWatcherGuard", "default_subpath_name"]CODE
LOWpython/cocoindex/connectorkits/async_adapters.py5__all__ = ["async_to_sync_iter", "sync_to_async_iter"]CODE
LOWpython/cocoindex/connectorkits/target.py5__all__ = ["ManagedBy"]CODE
LOWpython/cocoindex/resources/id.py20__all__ = ["IdGenerator", "UuidGenerator", "generate_id", "generate_uuid"]CODE
LOWpython/cocoindex/resources/chunk.py5__all__ = ["Chunk", "TextPosition"]CODE
LOWpython/cocoindex/resources/file.py5__all__ = [CODE
LOWpython/cocoindex/resources/view.py11__all__ = ["SourceView", "ViewSegment"]CODE
LOWpython/cocoindex/resources/live_map.py38__all__ = ["LiveMap"]CODE
LOWpython/cocoindex/resources/rate_limit.py13__all__ = ["RateLimiter"]CODE
LOWpython/cocoindex/resources/embedder.py11__all__ = ["Embedder"]CODE
LOWpython/cocoindex/resources/schema.py67__all__ = [CODE
LOWpython/cocoindex/ops/code.py11__all__ = [STRING
LOWpython/cocoindex/ops/__init__.py7__all__ = ["code", "litellm", "sentence_transformers", "text"]CODE
LOWpython/cocoindex/ops/litellm.py10__all__ = [CODE
LOWpython/cocoindex/ops/text.py6__all__ = [CODE
LOWpython/cocoindex/ops/sentence_transformers.py9__all__ = ["SentenceTransformerEmbedder"]CODE
LOWpython/cocoindex/ops/entity_resolution/llm_resolver.py22__all__ = ["LlmPairResolver"]CODE
39 more matches not shown…
Excessive Try-Catch Wrapping83 hits · 72 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/user_app_loader.py107 except Exception as e:CODE
LOWpython/cocoindex/cli.py84 except Exception:CODE
LOWpython/cocoindex/cli.py177 except Exception:CODE
LOWpython/cocoindex/cli.py192 except Exception:CODE
LOWpython/cocoindex/cli.py302 except Exception as e:CODE
LOWpython/cocoindex/cli.py1247 except Exception as e:STRING
LOWpython/cocoindex/connectors/neo4j/_target.py661 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/neo4j/_target.py674 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py607 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py623 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1098 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1112 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1124 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1138 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1183 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1199 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/doris/_target.py227 except Exception as e:CODE
LOWpython/cocoindex/connectors/doris/_target.py1073 except Exception as e:CODE
LOWpython/cocoindex/connectors/doris/_target.py1090 except Exception as e:CODE
LOWpython/cocoindex/connectors/doris/_target.py1127 except Exception as e:CODE
LOWpython/cocoindex/connectors/snowflake/_target.py430 except Exception:CODE
LOWpython/cocoindex/connectors/snowflake/_target.py708 except Exception:CODE
LOWpython/cocoindex/connectors/sqlite/_target.py103 except Exception:CODE
LOWpython/cocoindex/connectors/kafka/_source.py138 except Exception:CODE
LOWpython/cocoindex/connectors/kafka/_source.py289 except Exception:CODE
LOWpython/cocoindex/connectors/iggy/_source.py136 except Exception:CODE
LOWpython/cocoindex/connectors/qdrant/_target.py393 except Exception:CODE
LOWpython/cocoindex/connectors/qdrant/_target.py653 except Exception:CODE
LOWpython/cocoindex/connectors/lancedb/_target.py516 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/cocoindex/connectors/lancedb/_target.py535 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/cocoindex/_internal/runner.py141 except Exception:CODE
LOWpython/cocoindex/_internal/batching.py53 except Exception:CODE
LOWpython/cocoindex/_internal/batching.py139 except Exception as e:CODE
LOWpython/cocoindex/_internal/batching.py174 except Exception as e:CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py74 except Exception:CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py380 except Exception:CODE
LOWpython/cocoindex/_internal/target_state.py82 except Exception:CODE
LOWpython/cocoindex/_internal/serde.py367 except Exception as e:CODE
LOWpython/cocoindex/_internal/serde.py401 except Exception as e:CODE
LOWpython/cocoindex/_internal/serde.py419 except Exception as e:CODE
LOWpython/cocoindex/_internal/serde.py428 except Exception as e:CODE
LOWpython/cocoindex/_internal/target_state_codec.py239 except Exception:CODE
LOWpython/cocoindex/_internal/target_state_codec.py285 except Exception:CODE
LOWpython/cocoindex/_internal/setting.py52 except Exception as e:CODE
LOWpython/cocoindex/_internal/api.py593 except Exception as exc:CODE
LOWpython/cocoindex/_internal/api.py617 except Exception as exc:CODE
LOWpython/cocoindex/_internal/environment.py580 except Exception:CODE
LOWpython/cocoindex/_internal/environment.py599 except Exception:CODE
LOWpython/cocoindex/_internal/deadline.py207 except Exception as error:CODE
LOWpython/cocoindex/_internal/function.py745 except Exception:CODE
LOWpython/cocoindex/_internal/function.py1324 except Exception:CODE
LOWpython/cocoindex/_internal/function.py2289 except Exception:CODE
LOWpython/cocoindex/connectorkits/async_adapters.py69 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/cocoindex/connectorkits/async_adapters.py153 except Exception as e: # pylint: disable=broad-exceptCODE
MEDIUMpython/cocoindex/connectorkits/async_adapters.py63def producer() -> None:CODE
MEDIUMpython/cocoindex/connectorkits/async_adapters.py147def run_async() -> None:CODE
LOWpython/cocoindex/ops/litellm.py441 except Exception as e:CODE
LOWpython/cocoindex/ops/sentence_transformers.py49 except Exception: # pragma: no cover - defensiveCODE
LOWpython/cocoindex/ops/sentence_transformers.py153 except Exception as e:CODE
LOWpython/tests/conftest.py28 except Exception:CODE
23 more matches not shown…
Deep Nesting73 hits · 60 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/engine_object.py17CODE
LOWpython/cocoindex/cli.py764CODE
LOWpython/cocoindex/cli.py1049CODE
LOWpython/cocoindex/cli.py1138CODE
LOWpython/cocoindex/cli.py1070CODE
LOWpython/cocoindex/cli.py1152CODE
LOWpython/cocoindex/connectors/neo4j/_target.py1073CODE
LOWpython/cocoindex/connectors/neo4j/_target.py1335CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py610CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py1083CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py1372CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1022CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1363CODE
LOWpython/cocoindex/connectors/localfs/_source.py105CODE
LOWpython/cocoindex/connectors/localfs/_source.py228CODE
LOWpython/cocoindex/connectors/doris/_target.py677CODE
LOWpython/cocoindex/connectors/doris/_target.py1047CODE
LOWpython/cocoindex/connectors/doris/_target.py1101CODE
LOWpython/cocoindex/connectors/valkey/_target.py391CODE
LOWpython/cocoindex/connectors/valkey/_target.py440CODE
LOWpython/cocoindex/connectors/valkey/_target.py481CODE
LOWpython/cocoindex/connectors/zvec/_target.py539CODE
LOWpython/cocoindex/connectors/zvec/_target.py888CODE
LOWpython/cocoindex/connectors/bigquery/_target.py755CODE
LOWpython/cocoindex/connectors/snowflake/_target.py394CODE
LOWpython/cocoindex/connectors/snowflake/_target.py650CODE
LOWpython/cocoindex/connectors/sqlite/_target.py794CODE
LOWpython/cocoindex/connectors/sqlite/_target.py877CODE
LOWpython/cocoindex/connectors/postgres/_target.py753CODE
LOWpython/cocoindex/connectors/postgres/_target.py520CODE
LOWpython/cocoindex/connectors/postgres/_target.py1166CODE
LOWpython/cocoindex/connectors/kafka/_source.py276CODE
LOWpython/cocoindex/connectors/iggy/_source.py329CODE
LOWpython/cocoindex/connectors/qdrant/_target.py180CODE
LOWpython/cocoindex/connectors/qdrant/_target.py371CODE
LOWpython/cocoindex/connectors/lancedb/_target.py758CODE
LOWpython/cocoindex/_internal/serde.py341CODE
LOWpython/cocoindex/_internal/serde.py388CODE
LOWpython/cocoindex/_internal/target_state_codec.py198CODE
LOWpython/cocoindex/_internal/environment.py380CODE
LOWpython/cocoindex/_internal/datatype.py205CODE
LOWpython/cocoindex/_internal/datatype.py284CODE
LOWpython/cocoindex/_internal/datatype.py129CODE
LOWpython/cocoindex/_internal/deadline.py134CODE
LOWpython/cocoindex/_internal/function.py534CODE
LOWpython/cocoindex/_internal/function.py634CODE
LOWpython/cocoindex/_internal/function.py739CODE
LOWpython/cocoindex/_internal/function.py794CODE
LOWpython/cocoindex/_internal/function.py950CODE
LOWpython/cocoindex/_internal/function.py1316CODE
LOWpython/cocoindex/_internal/function.py1393CODE
LOWpython/cocoindex/_internal/function.py1760CODE
LOWpython/cocoindex/connectorkits/async_adapters.py24CODE
LOWpython/cocoindex/connectorkits/async_adapters.py101CODE
LOWpython/tests/conftest.py51CODE
LOWpython/tests/conftest.py70CODE
LOWpython/tests/connectors/test_valkey_target.py91CODE
LOWpython/tests/core/test_target_state_values.py106CODE
LOWpython/tests/core/test_target_state_codec.py50CODE
LOWpython/tests/cli/test_cli.py71CODE
13 more matches not shown…
Docstring Block Structure10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHpython/cocoindex/connectors/sqlite/_target.py1206 Create a TableTarget for writing rows to a SQLite table (regular or virtual). Declares the table target state STRING
HIGHpython/cocoindex/_internal/api.py802 Declare a persistent state for the current component. On the first run, the returned handle's `.value` is `iniSTRING
HIGHpython/cocoindex/_internal/component_ctx.py321 Create a component subpath for use with mount()/use_mount() or as a context manager. Args: *key_parts:STRING
HIGHpython/cocoindex/_internal/component_ctx.py396 Retrieve a value from the context. This replaces the old `scope.use(key)` API. Args: key: The ConSTRING
HIGHpython/cocoindex/_internal/component_ctx.py508 Get the next unique ID for the given key. This is an internal function that generates unique IDs within the cuSTRING
HIGHpython/cocoindex/connectorkits/statediff.py199Compute a diff for a composite state and group sub-state transitions. Args: t: A `StateTransition` whose deSTRING
HIGHpython/cocoindex/connectorkits/async_adapters.py29 Adapt a synchronous iterator function to an asynchronous iterator. This function takes a callable that returnsSTRING
HIGHpython/cocoindex/connectorkits/async_adapters.py106 Adapt an asynchronous iterator function to a synchronous iterator. This function takes a callable that returnsSTRING
HIGHpython/cocoindex/ops/code.py31Source text plus a lazily-parsed, shared AST. The universal input for APIs that may need a parse: pass one handle tSTRING
HIGHpython/cocoindex/ops/text.py21Detect programming language from a filename. Args: filename: The filename to detect language from (e.g., "mSTRING
Structural Annotation Overuse24 hits · 44 pts
SeverityFileLineSnippetContext
LOWpython/tests/core/test_component_memo.py359 # Step 1: Load with memo=True and run.COMMENT
LOWpython/tests/core/test_component_memo.py370 # Step 2: Load without memo=True and run.COMMENT
LOWpython/tests/core/test_component_memo.py381 # Step 3: Load with memo=True again and run.COMMENT
LOW⚡rust/core/src/state_store/storage.rs909 // Step 1: hold a guarded read transaction open.COMMENT
LOW⚡rust/core/src/state_store/storage.rs919 // Step 2: concurrent write that will trigger MapFull + resize.COMMENT
LOWrust/core/src/state_store/storage.rs942 // Step 3: wait until the resize path holds (or waits for) the coordinatorCOMMENT
LOW⚡rust/core/src/state_store/storage.rs961 // Step 4: release the read transaction (txn drops before its guard).COMMENT
LOW⚡rust/core/src/state_store/storage.rs964 // Step 5: write completes, map grows, data is readable.COMMENT
LOWexamples/rust/conversation_to_knowledge/src/pipeline.rs29/// Step 1: identify speakers + session metadata.COMMENT
LOWexamples/rust/conversation_to_knowledge/src/pipeline.rs59/// Step 2: extract thematic statements + the entities they involve.COMMENT
LOW⚡examples/rust/conversation_to_knowledge/src/pipeline.rs116 // Step 1: format with no known names, extract metadata + speaker map.COMMENT
LOW⚡examples/rust/conversation_to_knowledge/src/pipeline.rs120 // Step 2: format with real names, extract statements.COMMENT
LOWexamples/conversation_to_knowledge/spec.md58#### Step 1: Extract metadata and identify speakersCOMMENT
LOWexamples/conversation_to_knowledge/spec.md69#### Step 2: Extract statements and involved entitiesCOMMENT
LOWexamples/conversation_to_knowledge/design.md289 # Step 1: reformat with empty map (no names known yet), then extract metadataCOMMENT
LOWexamples/conversation_to_knowledge/design.md293 # Step 2: reformat with real names, then extract statementsCOMMENT
LOW⚡…amples/conversation_to_knowledge/conv_knowledge/app.py129 # Step 1: format with empty map (no names known yet), then extract metadataCOMMENT
LOW⚡…amples/conversation_to_knowledge/conv_knowledge/app.py133 # Step 2: format with real names, then extract statementsCOMMENT
LOW⚡…es/conversation_to_knowledge/conv_knowledge/extract.py51# Step 1: Extract metadata + identify speakersCOMMENT
LOW⚡…es/conversation_to_knowledge/conv_knowledge/extract.py115# Step 2: Extract statements + involved entitiesCOMMENT
LOWdev/agent-skills/target-connector/attachments.md41### Step 1: Define Attachment TypesCOMMENT
LOWdev/agent-skills/target-connector/attachments.md55### Step 2: Implement Attachment HandlerCOMMENT
LOWdev/agent-skills/target-connector/attachments.md79### Step 3: Add `attachment()` to Parent HandlerCOMMENT
LOWdev/agent-skills/target-connector/attachments.md93### Step 4: Expose User-Facing APICOMMENT
Verbosity Indicators16 hits · 32 pts
SeverityFileLineSnippetContext
LOWpython/tests/core/test_component_memo.py359 # Step 1: Load with memo=True and run.COMMENT
LOWpython/tests/core/test_component_memo.py370 # Step 2: Load without memo=True and run.COMMENT
LOWpython/tests/core/test_component_memo.py381 # Step 3: Load with memo=True again and run.COMMENT
LOW⚡rust/core/src/state_store/storage.rs909 // Step 1: hold a guarded read transaction open.COMMENT
LOW⚡rust/core/src/state_store/storage.rs919 // Step 2: concurrent write that will trigger MapFull + resize.COMMENT
LOWrust/core/src/state_store/storage.rs942 // Step 3: wait until the resize path holds (or waits for) the coordinatorCOMMENT
LOW⚡rust/core/src/state_store/storage.rs961 // Step 4: release the read transaction (txn drops before its guard).COMMENT
LOW⚡rust/core/src/state_store/storage.rs964 // Step 5: write completes, map grows, data is readable.COMMENT
LOWexamples/rust/conversation_to_knowledge/src/pipeline.rs29/// Step 1: identify speakers + session metadata.COMMENT
LOWexamples/rust/conversation_to_knowledge/src/pipeline.rs59/// Step 2: extract thematic statements + the entities they involve.COMMENT
LOW⚡examples/rust/conversation_to_knowledge/src/pipeline.rs116 // Step 1: format with no known names, extract metadata + speaker map.COMMENT
LOW⚡examples/rust/conversation_to_knowledge/src/pipeline.rs120 // Step 2: format with real names, extract statements.COMMENT
LOW⚡…amples/conversation_to_knowledge/conv_knowledge/app.py129 # Step 1: format with empty map (no names known yet), then extract metadataCOMMENT
LOW⚡…amples/conversation_to_knowledge/conv_knowledge/app.py133 # Step 2: format with real names, then extract statementsCOMMENT
LOW⚡…es/conversation_to_knowledge/conv_knowledge/extract.py51# Step 1: Extract metadata + identify speakersCOMMENT
LOW⚡…es/conversation_to_knowledge/conv_knowledge/extract.py115# Step 2: Extract statements + involved entitiesCOMMENT
Magic Placeholder Names4 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…/content/example-posts/multi-codebase-summarization.md55 export GEMINI_API_KEY="your-api-key"CODE
HIGH…rc/content/example-posts/hackernews-trending-topics.md342 export GEMINI_API_KEY="your-api-key"CODE
HIGHexamples/rust/multi_codebase_summarization/src/main.rs23//! export LLM_API_KEY="your-api-key"COMMENT
HIGHskills/cocoindex/references/setup_database.md142 api_key="your-api-key",CODE
Self-Referential Comments7 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMpython/cocoindex/connectors/doris/_target.py577 # Create a session bound to the current event loop. _apply_actions may runCOMMENT
MEDIUMpython/cocoindex/connectors/lancedb/_target.py1095 # Create an empty batch with the schemaCOMMENT
MEDIUMpython/cocoindex/_internal/component_ctx.py296 # Create a new ComponentContext with extended pathCOMMENT
MEDIUMpython/cocoindex/_internal/function.py821 # Create the fn call context (and record this function's own logic fp)COMMENT
MEDIUMpython/tests/connectors/test_postgres_target.py822 # Create a view that depends on column "extra" so DROP COLUMN fails.COMMENT
MEDIUMpython/tests/connectors/test_sqlite_target.py1182 # Create a new connection without loading vec extensionCOMMENT
MEDIUMpython/tests/cli/app_not_bound.py36# Create the app but DON'T bind it to a simple module-level name.COMMENT
Redundant / Tautological Comments12 hits · 17 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/cli.py1229 # Check if directory exists and has filesSTRING
LOWpython/cocoindex/connectors/localfs/_target.py76 # Write fileCOMMENT
LOWpython/cocoindex/connectors/localfs/_target.py156 # Check if update neededCOMMENT
LOWpython/cocoindex/connectors/sqlite/_target.py766 # Check if vector columns are used but sqlite-vec is not loadedCOMMENT
LOWpython/cocoindex/connectors/sqlite/_target.py898 # Check if this is a virtual table (for special handling)COMMENT
LOWpython/cocoindex/connectors/kafka/_source.py302 # Check if already caught up (e.g. empty topic, or fully consumed)COMMENT
LOWpython/cocoindex/connectors/lancedb/_target.py1079 # Check if table existsCOMMENT
LOWpython/cocoindex/_internal/function.py848 # Check if cached result is still validCOMMENT
LOWpython/cocoindex/_internal/function.py1429 # Check if cached result is still validCOMMENT
LOWdev/run_maturin_develop.sh18# Check if running with free-threaded Python (Python 3.13+ has _is_gil_enabled)COMMENT
LOWdev/generate_cli_docs.py90 # Check if this is a new option line (starts with exactly 2 spaces then -)COMMENT
LOWdev/generate_cli_docs.py154 # Check if this is a command line (starts with 2 spaces + command name)COMMENT
Cross-Language Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHpython/cocoindex/connectors/lancedb/_target.py1155 # Existing rows are backfilled with null, so additive schemaCOMMENT
HIGHpython/tests/ops/test_text.py585 " this.users.push(user);\n"CODE
AI Structural Patterns8 hits · 6 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/connectors/iggy/_source.py498CODE
LOWpython/cocoindex/connectors/iggy/_source.py538CODE
LOWpython/cocoindex/connectors/iggy/_source.py255CODE
LOWpython/cocoindex/connectors/lancedb/_target.py1305CODE
LOWpython/cocoindex/_internal/function.py1896CODE
LOWpython/cocoindex/_internal/function.py2030CODE
LOWpython/cocoindex/_internal/function.py2132CODE
LOWpython/cocoindex/_internal/function.py2157CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/_internal/memo_fingerprint.py279 # For others, don't try to sort and just return a placeholder.COMMENT
MEDIUMdocs/package-lock.json7292 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWrust/sdk/cocoindex/tests/ops_api.rs269 r#"{"matched": "Acme Corp", "canonical": "matched"}"#CODE
LOWrust/sdk/cocoindex/tests/ops_api.rs292 .resolve_pair("ACME", &["Acme Corp".to_string()])CODE
LOWrust/sdk/cocoindex/tests/ops_api.rs295 assert_eq!(decision.matched.as_deref(), Some("Acme Corp"));CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/sec_edgar_analytics/docker-compose.yml4# Usage:COMMENT
LOWdev/agent-skills/cocoindex-diagrams/scripts/preview.sh6# Usage:COMMENT