Repository Analysis

cocoindex-io/cocoindex

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

23.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cocoindex-io/cocoindex, a Rust project with 10,748 GitHub stars. SynthScan v2.0 examined 223,717 lines of code across 857 source files, recording 2968 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 23.7 places this repository in the Moderate 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).

23.7
Adjusted Score
23.7
Raw Score
100%
Time Factor
2026-07-13
Last Push
10.7K
Stars
Rust
Language
223.7K
Lines of Code
857
Files
3.0K
Pattern Hits
2026-07-14
Scan Date
0.10
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 83MEDIUM 950LOW 1935

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 2968 distinct pattern matches across 19 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.

Decorative Section Separators940 hits · 3064 pts
SeverityFileLineSnippetContext
MEDIUMpython/cocoindex/cli.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/cli.py498# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/cli.py500# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/cli.py543# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/cli.py545# ---------------------------------------------------------------------------STRING
MEDIUMpython/cocoindex/connectors/neo4j/_target.py75# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py77# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1197# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1199# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1206# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1208# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1561# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1563# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py168# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py197# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py199# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py227# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py246# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py248# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py334# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py336# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py353# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py355# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py460# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py462# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py595# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py597# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py740# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py742# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py863# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py865# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py969# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py971# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1291# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1293# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1390# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/neo4j/_target.py1392# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py1053# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py1055# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py1062# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py1064# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py1407# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py1409# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py102# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py145# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py147# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py166# ---------------------------------------------------------------------------COMMENT
MEDIUMpython/cocoindex/connectors/surrealdb/_target.py168# ---------------------------------------------------------------------------COMMENT
880 more matches not shown…
Hyper-Verbose Identifiers1123 hits · 1007 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/user_app_loader.py36def _import_as_package_module(CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py120def build_relationship_upsert(CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py148def build_relationship_delete(rel_type: str, pk_fields: Sequence[str]) -> str:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py190def build_relationship_index_create(CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py205def build_relationship_index_drop(name: str) -> str:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py241def build_vector_index_create(CODE
LOWpython/cocoindex/connectors/neo4j/_target.py414 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/neo4j/_target.py931def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py387 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py795def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py98def build_relationship_upsert(CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py126def build_relationship_delete(rel_type: str, pk_fields: Sequence[str]) -> str:CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py158def build_relationship_index_create(rel_type: str, fields: Sequence[str]) -> str:CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py166def build_relationship_index_drop(rel_type: str, fields: Sequence[str]) -> str:CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py174def build_vector_index_create(CODE
LOWpython/cocoindex/connectors/falkordb/_target.py375 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/falkordb/_target.py881def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/localfs/_target.py90def _apply_actions_with_child(CODE
LOWpython/cocoindex/connectors/doris/_target.py493def _convert_to_key_column_type(doris_type: str) -> str:CODE
LOWpython/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.py1331def build_vector_search_query(CODE
LOWpython/cocoindex/connectors/zvec/_target.py90def _validate_collection_name(name: str) -> None:CODE
LOWpython/cocoindex/connectors/zvec/_target.py764def _apply_collection_actions(CODE
LOWpython/cocoindex/connectors/zvec/_target.py975def declare_collection_target(CODE
LOWpython/cocoindex/connectors/bigquery/_target.py156 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/bigquery/_target.py610def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/snowflake/_target.py149 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/snowflake/_target.py510def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/sqlite/_target.py366 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/sqlite/_target.py640def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/postgres/_target.py393 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/postgres/_target.py932def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/connectors/postgres/_target.py1048 async def _ensure_pgvector_extension(CODE
LOWpython/cocoindex/connectors/postgres/_target.py1355 def declare_sql_command_attachment(CODE
LOWpython/cocoindex/connectors/kafka/_target.py277def 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.py297def declare_iggy_topic_target(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py130def _resolve_sparse_vector_def(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py597def declare_collection_target(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py678def _sparse_modifier_from_spec(CODE
LOWpython/cocoindex/connectors/qdrant/_target.py713def _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.py284 async def _columns_from_record_type(CODE
LOWpython/cocoindex/connectors/lancedb/_target.py378def _count_prunable_old_versions(versions: Sequence[dict[str, Any]]) -> int:CODE
LOWpython/cocoindex/connectors/lancedb/_target.py460 def _legacy_fingerprint_for_null_backfill(CODE
LOWpython/cocoindex/connectors/lancedb/_target.py940def _table_composite_tracking_record_from_spec(CODE
LOWpython/cocoindex/_internal/runner.py490def _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.py210def register_not_memo_keyable(typ: type) -> None:CODE
LOWpython/cocoindex/_internal/memo_fingerprint.py232def unregister_memo_key_function(typ: type) -> None:CODE
LOWpython/cocoindex/_internal/inspect_api.py30async def iter_stable_paths_by_name(CODE
LOWpython/cocoindex/_internal/inspect_api.py48async def _iter_stable_paths_collected(CODE
LOWpython/cocoindex/_internal/inspect_api.py54def list_stable_paths_info_sync(CODE
LOWpython/cocoindex/_internal/inspect_api.py69async def get_stable_path_detail_by_name(CODE
LOWpython/cocoindex/_internal/inspect_api.py78async def query_stable_path_details(CODE
LOWpython/cocoindex/_internal/inspect_api.py92async def query_stable_path_details_by_name(CODE
1063 more matches not shown…
Cross-File Repetition67 hits · 335 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/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.py0apply table actions (ddl) and return child row handlers.STRING
HIGHpython/cocoindex/connectors/postgres/_target.py0apply table actions (ddl) and return child row handlers.STRING
HIGHpython/cocoindex/connectors/lancedb/_target.py0apply table actions (ddl) and return child row handlers.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
HIGHdocs/src/content/example-posts/patient-intake-dspy.md0main application function that processes patient intake forms.STRING
HIGHdocs/src/content/example-posts/patient-intake-baml.md0main application function that processes patient intake forms.STRING
HIGHexamples/patient_intake_extraction_baml/main.py0main application function that processes patient intake forms.STRING
7 more matches not shown…
Over-Commented Block236 hits · 234 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/cli.py401 """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/_internal/live_component.py341 # the nested-mount path — we install a fresh inner controller at theCOMMENT
LOWpython/cocoindex/_internal/function.py921 memo_args, memo_kwargs = _apply_memo_key(COMMENT
LOWpython/cocoindex/_internal/function.py1641 #COMMENT
LOWpython/tests/core/test_logic_change_detection.py401 }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/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/state/db_schema.rs21/// `UserState*` keyspace but are isolated by a discriminant byte so theyCOMMENT
LOWrust/core/src/state/db_schema.rs241 pub processor_fp: Fingerprint,COMMENT
LOWrust/core/src/state/db_schema.rs261 #[serde(rename = "L", default, skip_serializing_if = "Vec::is_empty")]COMMENT
LOWrust/core/src/state/db_schema.rs321#[serde_as]COMMENT
LOWrust/core/src/state/db_schema.rs361 /// in-flight lifecycle (paired with `pending_process_token == self`).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.rs341 /// If true, also prefix-delete all `Live`-kind user-state rows for self.COMMENT
LOWrust/core/src/state_store/submit_session.rs361///COMMENT
LOWrust/core/src/state_store/submit_session.rs381 /// returned [`PrecommitWritePlan`] and commits — or contributes noCOMMENT
LOWrust/core/src/state_store/submit_session.rs541 self.clear_staged_tracking(component_path, process_token)COMMENT
LOWrust/core/src/state_store/app_store.rs1//! Per-app handle within a [`Storage`](super::Storage).COMMENT
LOWrust/core/src/state_store/app_store.rs921 Ok(())COMMENT
LOWrust/core/src/state_store/storage.rs81COMMENT
LOWrust/core/src/state_store/storage.rs121COMMENT
LOWrust/core/src/state_store/storage.rs161/// from the final commit), the write txn and its coordinator read guard areCOMMENT
LOWrust/core/src/state_store/storage.rs341 /// coalesced into a single underlying write txn for throughput. FIFO:COMMENT
LOWrust/core/src/state_store/txn.rs1//! LMDB transaction wrappers and the shared transaction/resize coordinator.COMMENT
LOWrust/core/src/engine/execution.rs541 //COMMENT
LOWrust/core/src/engine/execution.rs621struct PreCommitOutput<Prof: EngineProfile> {COMMENT
LOWrust/core/src/engine/execution.rs661 processor_name: Option<Arc<str>>,COMMENT
176 more matches not shown…
Unused Imports273 hits · 231 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.py20CODE
LOWpython/cocoindex/connectors/falkordb/_target.py37CODE
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
213 more matches not shown…
Modern Structural Boilerplate95 hits · 92 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/cli.py41def _setup_logging() -> None:CODE
LOWpython/cocoindex/connectors/neo4j/_cypher.py20__all__ = [CODE
LOWpython/cocoindex/connectors/neo4j/_target.py1565__all__ = [CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py1411__all__ = [CODE
LOWpython/cocoindex/connectors/falkordb/_cypher.py17__all__ = [CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1588__all__ = [CODE
LOWpython/cocoindex/connectors/localfs/_source.py393__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.py1387__all__ = [CODE
LOWpython/cocoindex/connectors/valkey/_target.py22logger = logging.getLogger(__name__)CODE
LOWpython/cocoindex/connectors/valkey/_target.py768__all__ = [CODE
LOWpython/cocoindex/connectors/zvec/_target.py1003__all__ = [CODE
LOWpython/cocoindex/connectors/bigquery/_target.py988__all__ = [CODE
LOWpython/cocoindex/connectors/snowflake/_target.py893__all__ = [CODE
LOWpython/cocoindex/connectors/sqlite/_target.py1375__all__ = [CODE
LOWpython/cocoindex/connectors/postgres/_source.py255__all__ = [CODE
LOWpython/cocoindex/connectors/postgres/_target.py61logger = logging.getLogger(__name__)CODE
LOWpython/cocoindex/connectors/postgres/_target.py1507__all__ = [CODE
LOWpython/cocoindex/connectors/kafka/_source.py512__all__ = [CODE
LOWpython/cocoindex/connectors/kafka/_target.py327__all__ = [CODE
LOWpython/cocoindex/connectors/iggy/_source.py583__all__ = [CODE
LOWpython/cocoindex/connectors/iggy/_target.py367__all__ = [CODE
LOWpython/cocoindex/connectors/qdrant/_target.py768__all__ = [CODE
LOWpython/cocoindex/connectors/turbopuffer/_target.py582__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.py1507__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.py450__all__ = [CODE
LOWpython/cocoindex/_internal/inspect_api.py111__all__ = [CODE
LOWpython/cocoindex/_internal/api.py892__all__ = [CODE
LOWpython/cocoindex/_internal/context_keys.py160 def set_core_env(self, core_env: core.Environment) -> None:CODE
LOWpython/cocoindex/_internal/live_component.py296 async def update_full(self) -> None:CODE
LOWpython/cocoindex/_internal/live_component.py524 async def update_all(self) -> None:CODE
LOWpython/cocoindex/_internal/environment.py113 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.py37__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
35 more matches not shown…
Excessive Try-Catch Wrapping80 hits · 71 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/user_app_loader.py107 except Exception as e:CODE
LOWpython/cocoindex/cli.py82 except Exception:CODE
LOWpython/cocoindex/cli.py163 except Exception:CODE
LOWpython/cocoindex/cli.py178 except Exception:CODE
LOWpython/cocoindex/cli.py288 except Exception as e:CODE
LOWpython/cocoindex/cli.py1112 except Exception as e:STRING
LOWpython/cocoindex/connectors/neo4j/_target.py658 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/neo4j/_target.py671 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py605 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py621 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1099 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1113 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1125 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1139 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1171 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1187 except Exception as e: # noqa: BLE001CODE
LOWpython/cocoindex/connectors/doris/_target.py227 except Exception as e:CODE
LOWpython/cocoindex/connectors/doris/_target.py1060 except Exception as e:CODE
LOWpython/cocoindex/connectors/doris/_target.py1105 except Exception:CODE
LOWpython/cocoindex/connectors/doris/_target.py1115 except Exception:CODE
LOWpython/cocoindex/connectors/snowflake/_target.py429 except Exception:CODE
LOWpython/cocoindex/connectors/snowflake/_target.py703 except Exception:CODE
LOWpython/cocoindex/connectors/sqlite/_target.py102 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.py391 except Exception:CODE
LOWpython/cocoindex/connectors/qdrant/_target.py654 except Exception:CODE
LOWpython/cocoindex/connectors/lancedb/_target.py512 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/cocoindex/connectors/lancedb/_target.py531 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWpython/cocoindex/_internal/runner.py142 except Exception:CODE
LOWpython/cocoindex/_internal/runner.py253 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.py365 except Exception:CODE
LOWpython/cocoindex/_internal/target_state.py68 except Exception:CODE
LOWpython/cocoindex/_internal/serde.py365 except Exception as e:CODE
LOWpython/cocoindex/_internal/serde.py399 except Exception as e:CODE
LOWpython/cocoindex/_internal/serde.py417 except Exception as e:CODE
LOWpython/cocoindex/_internal/serde.py426 except Exception as e:CODE
LOWpython/cocoindex/_internal/setting.py48 except Exception as e:CODE
LOWpython/cocoindex/_internal/api.py588 except Exception as exc:CODE
LOWpython/cocoindex/_internal/api.py612 except Exception as exc:CODE
LOWpython/cocoindex/_internal/environment.py532 except Exception:CODE
LOWpython/cocoindex/_internal/environment.py551 except Exception:CODE
LOWpython/cocoindex/_internal/deadline.py206 except Exception as error:CODE
LOWpython/cocoindex/_internal/function.py735 except Exception:CODE
LOWpython/cocoindex/_internal/function.py1270 except Exception:CODE
LOWpython/cocoindex/_internal/function.py2259 except Exception:CODE
LOWpython/cocoindex/connectorkits/async_adapters.py68 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/cocoindex/connectorkits/async_adapters.py151 except Exception as e: # pylint: disable=broad-exceptCODE
MEDIUMpython/cocoindex/connectorkits/async_adapters.py62def producer() -> None:CODE
MEDIUMpython/cocoindex/connectorkits/async_adapters.py145def run_async() -> None:CODE
LOWpython/cocoindex/ops/litellm.py271 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
LOWpython/tests/conftest.py75 except Exception as e:CODE
20 more matches not shown…
Deep Nesting64 hits · 52 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/engine_object.py17CODE
LOWpython/cocoindex/cli.py714CODE
LOWpython/cocoindex/cli.py914CODE
LOWpython/cocoindex/cli.py1003CODE
LOWpython/cocoindex/cli.py935CODE
LOWpython/cocoindex/cli.py1017CODE
LOWpython/cocoindex/connectors/neo4j/_target.py1068CODE
LOWpython/cocoindex/connectors/neo4j/_target.py1324CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py915CODE
LOWpython/cocoindex/connectors/surrealdb/_target.py1184CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1019CODE
LOWpython/cocoindex/connectors/falkordb/_target.py1351CODE
LOWpython/cocoindex/connectors/localfs/_source.py105CODE
LOWpython/cocoindex/connectors/localfs/_source.py218CODE
LOWpython/cocoindex/connectors/doris/_target.py677CODE
LOWpython/cocoindex/connectors/doris/_target.py1034CODE
LOWpython/cocoindex/connectors/valkey/_target.py388CODE
LOWpython/cocoindex/connectors/valkey/_target.py441CODE
LOWpython/cocoindex/connectors/valkey/_target.py482CODE
LOWpython/cocoindex/connectors/zvec/_target.py538CODE
LOWpython/cocoindex/connectors/zvec/_target.py894CODE
LOWpython/cocoindex/connectors/bigquery/_target.py754CODE
LOWpython/cocoindex/connectors/snowflake/_target.py393CODE
LOWpython/cocoindex/connectors/snowflake/_target.py649CODE
LOWpython/cocoindex/connectors/sqlite/_target.py862CODE
LOWpython/cocoindex/connectors/postgres/_target.py518CODE
LOWpython/cocoindex/connectors/kafka/_source.py276CODE
LOWpython/cocoindex/connectors/iggy/_source.py329CODE
LOWpython/cocoindex/connectors/qdrant/_target.py179CODE
LOWpython/cocoindex/connectors/qdrant/_target.py368CODE
LOWpython/cocoindex/connectors/lancedb/_target.py748CODE
LOWpython/cocoindex/_internal/runner.py216CODE
LOWpython/cocoindex/_internal/serde.py339CODE
LOWpython/cocoindex/_internal/serde.py386CODE
LOWpython/cocoindex/_internal/environment.py342CODE
LOWpython/cocoindex/_internal/datatype.py205CODE
LOWpython/cocoindex/_internal/datatype.py284CODE
LOWpython/cocoindex/_internal/datatype.py129CODE
LOWpython/cocoindex/_internal/deadline.py134CODE
LOWpython/cocoindex/_internal/function.py524CODE
LOWpython/cocoindex/_internal/function.py624CODE
LOWpython/cocoindex/_internal/function.py729CODE
LOWpython/cocoindex/_internal/function.py764CODE
LOWpython/cocoindex/_internal/function.py1262CODE
LOWpython/cocoindex/_internal/function.py1329CODE
LOWpython/cocoindex/connectorkits/async_adapters.py23CODE
LOWpython/cocoindex/connectorkits/async_adapters.py99CODE
LOWpython/tests/conftest.py51CODE
LOWpython/tests/conftest.py70CODE
LOWpython/tests/connectors/test_valkey_target.py78CODE
LOWpython/tests/core/test_logic_change_detection.py45CODE
LOWpython/tests/cli/test_cli.py71CODE
LOWpython/tests/cli/test_cli.py330CODE
LOWpython/tests/common/target_states.py209CODE
LOWpython/tests/common/target_states.py396CODE
LOWexamples/sec_edgar_analytics/main.py105CODE
LOWexamples/entire_session_search/main.py117CODE
LOWexamples/entire_session_search/main.py180CODE
LOWexamples/meeting_notes_graph_falkordb/main.py301CODE
LOW…amples/conversation_to_knowledge/conv_knowledge/app.py178CODE
4 more matches not shown…
Docstring Block Structure10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHpython/cocoindex/connectors/sqlite/_target.py1184 Create a TableTarget for writing rows to a SQLite table (regular or virtual). Declares the table target state STRING
HIGHpython/cocoindex/_internal/api.py797 Declare a persistent state for the current component. On the first run, the returned handle's `.value` is `iniSTRING
HIGHpython/cocoindex/_internal/component_ctx.py298 Create a component subpath for use with mount()/use_mount() or as a context manager. Args: *key_parts:STRING
HIGHpython/cocoindex/_internal/component_ctx.py373 Retrieve a value from the context. This replaces the old `scope.use(key)` API. Args: key: The ConSTRING
HIGHpython/cocoindex/_internal/component_ctx.py485 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.py28 Adapt a synchronous iterator function to an asynchronous iterator. This function takes a callable that returnsSTRING
HIGHpython/cocoindex/connectorkits/async_adapters.py104 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
LOWrust/core/src/state_store/storage.rs690 // Step 1: hold a guarded read transaction open.COMMENT
LOWrust/core/src/state_store/storage.rs700 // Step 2: concurrent write that will trigger MapFull + resize.COMMENT
LOWrust/core/src/state_store/storage.rs723 // Step 3: wait until the resize path holds (or waits for) the coordinatorCOMMENT
LOWrust/core/src/state_store/storage.rs742 // Step 4: release the read transaction (txn drops before its guard).COMMENT
LOWrust/core/src/state_store/storage.rs745 // 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
LOWexamples/rust/conversation_to_knowledge/src/pipeline.rs116 // Step 1: format with no known names, extract metadata + speaker map.COMMENT
LOWexamples/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.py50# Step 1: Extract metadata + identify speakersCOMMENT
LOW…es/conversation_to_knowledge/conv_knowledge/extract.py111# 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
LOWrust/core/src/state_store/storage.rs690 // Step 1: hold a guarded read transaction open.COMMENT
LOWrust/core/src/state_store/storage.rs700 // Step 2: concurrent write that will trigger MapFull + resize.COMMENT
LOWrust/core/src/state_store/storage.rs723 // Step 3: wait until the resize path holds (or waits for) the coordinatorCOMMENT
LOWrust/core/src/state_store/storage.rs742 // Step 4: release the read transaction (txn drops before its guard).COMMENT
LOWrust/core/src/state_store/storage.rs745 // 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
LOWexamples/rust/conversation_to_knowledge/src/pipeline.rs116 // Step 1: format with no known names, extract metadata + speaker map.COMMENT
LOWexamples/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.py50# Step 1: Extract metadata + identify speakersCOMMENT
LOW…es/conversation_to_knowledge/conv_knowledge/extract.py111# 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
Redundant / Tautological Comments12 hits · 17 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/cli.py1094 # 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.py763 # Check if vector columns are used but sqlite-vec is not loadedCOMMENT
LOWpython/cocoindex/connectors/sqlite/_target.py884 # 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.py1062 # Check if table existsCOMMENT
LOWpython/cocoindex/_internal/function.py810 # Check if cached result is still validCOMMENT
LOWpython/cocoindex/_internal/function.py1364 # 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
Self-Referential Comments6 hits · 16 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.py1078 # Create an empty batch with the schemaCOMMENT
MEDIUMpython/cocoindex/_internal/component_ctx.py273 # Create a new ComponentContext with extended pathCOMMENT
MEDIUMpython/tests/connectors/test_postgres_target.py818 # 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
Cross-Language Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHpython/cocoindex/connectors/lancedb/_target.py1138 # Existing rows are backfilled with null, so additive schemaCOMMENT
HIGHpython/tests/ops/test_text.py495 " this.users.push(user);\n"CODE
AI Structural Patterns9 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.py1284CODE
LOWpython/cocoindex/_internal/function.py1814CODE
LOWpython/cocoindex/_internal/function.py1971CODE
LOWpython/cocoindex/_internal/function.py1990CODE
LOWpython/cocoindex/_internal/function.py2102CODE
LOWpython/cocoindex/_internal/function.py2127CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWpython/cocoindex/_internal/memo_fingerprint.py264 # For others, don't try to sort and just return a placeholder.COMMENT
MEDIUMdocs/package-lock.json6659 "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