Repository Analysis

tursodatabase/turso

Turso is an in-process SQL database, compatible with SQLite.

2.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tursodatabase/turso, a Rust project with 22,838 GitHub stars. SynthScan v2.0 examined 751,356 lines of code across 1466 source files, recording 1736 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 2.9 places this repository in the Likely human-written 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).

2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
22.8K
Stars
Rust
Language
751.4K
Lines of Code
1.5K
Files
1.7K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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 2HIGH 31MEDIUM 202LOW 1501

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 1736 distinct pattern matches across 21 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.

Over-Commented Block889 hits · 816 pts
SeverityFileLineSnippetContext
LOWsql_generation/generation/mod.rs41/// ArbitraryFrom trait for generating random values from a given valueCOMMENT
LOWsql_generation/generation/expr.rs121 // base: Option::arbitrary_from(rng, t),COMMENT
LOWsql_generation/generation/expr.rs141 // Box::new(|rng| {COMMENT
LOWsql_generation/generation/expr.rs161 // let table_idx = pick_index(t.tables.len(), rng);COMMENT
LOWsql_generation/generation/opts.rs21#[serde(deny_unknown_fields, default)]COMMENT
LOWsql_generation/generation/predicate/unary.rs141 num_retries,COMMENT
LOWsql_generation/generation/predicate/unary.rs201 let column_index = rng.random_range(0..row.len());COMMENT
LOWsql_generation/generation/predicate/unary.rs221 // // True Value with negative is still TrueCOMMENT
LOWtools/dbhash/src/encoder.rs1//! Value encoding for dbhash.COMMENT
LOWcore/types.rs1681 pub fn len(&self) -> usize {COMMENT
LOWcore/types.rs1701/// [data1][data2][data3]...COMMENT
LOWcore/types.rs2081#[cfg(nightly)]COMMENT
LOWcore/types.rs2361}COMMENT
LOWcore/types.rs2381///COMMENT
LOWcore/types.rs2461/// common case where:COMMENT
LOWcore/types.rs2481///COMMENT
LOWcore/types.rs2581/// or `Greater` if the serialized record is less than, equal to, or greater thanCOMMENT
LOWcore/types.rs3261 /// Record matching the [SeekOp] doesn't exists in the B-treeCOMMENT
LOWcore/types.rs3281 },COMMENT
LOWcore/util.rs1241 .unwrap_or(0);COMMENT
LOWcore/statement.rs41/// toward `Connection::n_active_root_statements` once execution begins, whichCOMMENT
LOWcore/statement.rs81/// and custom-type resolution that the SQLite-compat `get_column_decltype`COMMENT
LOWcore/statement.rs101/// default.COMMENT
LOWcore/statement.rs121 /// Use this to distinguish "the user wrote `INTEGER`" (base_type: `None`)COMMENT
LOWcore/statement.rs141/// kinds (e.g. for future enum or table-row types) can be added without aCOMMENT
LOWcore/statement.rs161 /// declared name carries the field schema.COMMENT
LOWcore/statement.rs301 /// - `Some(Some(duration))`: override with a query-specific timeoutCOMMENT
LOWcore/statement.rs741 return Ok(crate::IOResult::IO(io));COMMENT
LOWcore/statement.rs1061 _ => None,COMMENT
LOWcore/statement.rs1081 /// - `Ok(None)` when the statement is in EXPLAIN mode, when `idx` is outCOMMENT
LOWcore/error.rs41 InvalidModifier(String),COMMENT
LOWcore/error.rs61 TooBig,COMMENT
LOWcore/lib.rs201/// Sentinel used when a SQL schema qualifier references an attachedCOMMENT
LOWcore/lib.rs421/// non-blocking by yielding through its IO instead of `io.block`.COMMENT
LOWcore/lib.rs441 #[default]COMMENT
LOWcore/lib.rs561/// `Database` object per a database file. We need because it is not safeCOMMENT
LOWcore/lib.rs2881COMMENT
LOWcore/percentile.rs201/// Standard Deviation implementation using Welford's algorithmCOMMENT
LOWcore/schema.rs101 pub commands: std::vec::Vec<turso_parser::ast::TriggerCmd>,COMMENT
LOWcore/schema.rs661// is_called, start, inc, min, max, cycle). The runtime watermark IS theCOMMENT
LOWcore/schema.rs681// same transaction.COMMENT
LOWcore/schema.rs1581 let row = return_if_io!(cursor.record());COMMENT
LOWcore/schema.rs3921 /// The start register for the result columns of the derived table;COMMENT
LOWcore/function.rs441 JsonGroupArray,COMMENT
LOWcore/busy.rs1use crate::MonotonicInstant;COMMENT
LOWcore/busy.rs41COMMENT
LOWcore/stats.rs21 /// These values come directly from sqlite_stat1's stat column (after theCOMMENT
LOWcore/multiprocess_tests.rs1861 conn.close().unwrap();COMMENT
LOWcore/multiprocess_tests.rs1881// 2. `test_multiprocess_nextval_after_other_process_committed_is_monotonic`COMMENT
LOWcore/multiprocess_tests.rs2261 std::fs::write(&result_path, body).expect("write result");COMMENT
LOWcore/multiprocess_tests.rs2381 );COMMENT
LOWcore/multiprocess_tests.rs2461 let body = idsCOMMENT
LOWcore/multiprocess_tests.rs2481/// duplicate watermark rows from cross-process flushes — thatCOMMENT
LOWcore/connection.rs81 pub(crate) db: Arc<Database>,COMMENT
LOWcore/connection.rs121}COMMENT
LOWcore/connection.rs201 parse: Box<crate::util::ParseSchemaRowsState>,COMMENT
LOWcore/connection.rs281/// carrying the worklist and the in-flight descriptor read across IO yields.COMMENT
LOWcore/connection.rs361 pub(crate) total_changes: AtomicI64,COMMENT
LOWcore/connection.rs401 pub(super) dqs_dml: AtomicBool,COMMENT
LOWcore/connection.rs421 /// Main DB uses `mv_tx` above for zero-cost hot path access.COMMENT
829 more matches not shown…
Decorative Section Separators112 hits · 368 pts
SeverityFileLineSnippetContext
MEDIUMcore/storage/encryption.rs30/// ┌───────────────┐ ┌───────────────┐COMMENT
MEDIUMcore/storage/encryption.rs33/// │ (4048 bytes) │ ────────► │ Content │COMMENT
MEDIUMcore/storage/encryption.rs35/// ├───────────────┤ ├───────────────┤COMMENT
MEDIUMcore/storage/encryption.rs37/// │ (48 bytes) │ ├───────────────┤COMMENT
MEDIUMcore/storage/encryption.rs39/// └───────────────┘ └───────────────┘COMMENT
MEDIUMcore/storage/encryption.rs55/// ┌─────────┬───────┬────────┬──────────────────┐COMMENT
MEDIUMcore/storage/encryption.rs60/// └─────────┴───────┴────────┴──────────────────┘COMMENT
MEDIUMcore/vdbe/hash_table.rs4421 // ── Grace hash join tests ──────────────────────────────────────COMMENT
MEDIUMcore/mvcc/database/tests.rs9393// ─── GC helpers ───────────────────────────────────────────────────────────COMMENT
MEDIUMcore/mvcc/database/tests.rs9414// ─── GC unit tests ───────────────────────────────────────────────────────COMMENT
MEDIUMcore/mvcc/database/tests.rs10765// ─── GC quickcheck property tests ────────────────────────────────────────COMMENT
MEDIUMcore/mvcc/database/tests.rs11914// ─── End-to-end GC + dual cursor tests ───────────────────────────────────COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs19//! ┌─────────────────────────────────────────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs23//! ├─────────────────────────────────────────┤COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs25//! ├─────────────────────────────────────────┤COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs27//! ├─────────────────────────────────────────┤COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs29//! └─────────────────────────────────────────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs35//! ┌─────────────────────────────────────────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs39//! ├─────────────────────────────────────────┤COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs49//! ├─────────────────────────────────────────┤COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs52//! └─────────────────────────────────────────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs166//! ┌──────────────┬──────────────────────────────┬───────────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs169//! └──────────────┴──────────────────────────────┴───────────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs172//! ┌──────────────┬──────────┬──────────┬──────────┬───────────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs175//! └──────────────┴──────────┴──────────┴──────────┴───────────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs178//! ┌───────────────────────────┬───────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs180//! └───────────────────────────┴───────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs185//! ┌────────┬────────────────────┬──────────┬────────────┬─────────────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs187//! └────────┴────────────────────┴──────────┴────────────┴─────────────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs198//! ┌──────┬──────┬────────────┬──────────┬──────┬────────────┬──────┬──────┬──────┬───────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs200//! └──────┴──────┴─────┼──────┴──────────┴──────┴──────┼─────┴──────┴──────┴──────┴───────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs207//! ┌──────┬──────┬──────┐ ┌──────┬──────┬──────┬──────┐ ┌──────┬──────┬──────┬──────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs209//! └──────┴──────┴──────┘ └──────┴──────┴──────┴──────┘ └──────┴──────┴──────┴──────┘COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs218//! ┌───────────┬────┐ ┌───────────┬────┐ ┌───────────┬────┐COMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs221//! └───────────┴────┘ └───────────┴────┘ └───────────┴────┘COMMENT
MEDIUMcore/functions/printf.rs150// ── Coercion helpers ────────────────────────────────────────────COMMENT
MEDIUMcore/functions/printf.rs199// ── Formatting helpers ──────────────────────────────────────────COMMENT
MEDIUMcore/functions/printf.rs440 // ── Rounding (sqlite3.c:36968-36997) ──────────────────────────COMMENT
MEDIUMcore/functions/printf.rs505 // ── Integer part (sqlite3.c:32581-32588) ───────────────────────COMMENT
MEDIUMcore/functions/printf.rs525 // ── Fractional part (sqlite3.c:32591-32602) ────────────────────COMMENT
MEDIUMcore/functions/printf.rs663// ── Per-specifier formatters ────────────────────────────────────COMMENT
MEDIUMcore/functions/printf.rs960 // ── Exponential notation ──────────────────────────────────COMMENT
MEDIUMcore/functions/printf.rs967 // ── Fixed-point notation ──────────────────────────────────COMMENT
MEDIUMcore/functions/printf.rs1247// ── Main entry point ────────────────────────────────────────────COMMENT
MEDIUMcore/functions/printf.rs1682 // ── Bug fix regression tests ────────────────────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs69// ── SELECT one field: flat column vs struct field ────────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs118// ── SELECT two fields: flat columns vs struct fields ────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs165// ── WHERE filter: flat column vs struct field ───────────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs215// ── INSERT: flat row vs struct_pack row ─────────────────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs274// ── Union extract vs flat column read ──────────────────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs314// ── Union tag scan vs typeof() on flat column ──────────────────────────COMMENT
MEDIUMcore/benches/struct_union_benchmark.rs361// ── criterion wiring ───────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs32// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs34// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs188// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs190// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs292// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs294// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs345// ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/integration/stmt_journal.rs347// ──────────────────────────────────────────────────────────COMMENT
52 more matches not shown…
Excessive Try-Catch Wrapping187 hits · 258 pts
SeverityFileLineSnippetContext
LOWtesting/sqltests/docs/adding-backends.md271 except Exception as e:CODE
LOWtesting/sqltests/docs/adding-backends.md276 except Exception as e:CODE
LOWtesting/antithesis/bank-test/anytime_validate.py8except Exception as e:CODE
MEDIUMtesting/antithesis/bank-test/anytime_validate.py9 print(f"Error connecting to database: {e}")CODE
LOWtesting/antithesis/bank-test/finally_validate.py8except Exception as e:CODE
MEDIUMtesting/antithesis/bank-test/finally_validate.py9 print(f"Error connecting to database: {e}")CODE
LOWtesting/antithesis/bank-test/eventually_validate.py8except Exception as e:CODE
MEDIUMtesting/antithesis/bank-test/eventually_validate.py9 print(f"Error connecting to database: {e}")CODE
LOWtesting/antithesis/bank-test/first_setup.py8except Exception as e:CODE
MEDIUMtesting/antithesis/bank-test/first_setup.py9 print(f"Error connecting to database: {e}")CODE
LOW…esis/bank-test/parallel_driver_generate_transaction.py21except Exception as e:CODE
MEDIUM…esis/bank-test/parallel_driver_generate_transaction.py22 print(f"Error connecting to database: {e}")CODE
LOW…sis/stress-composer/parallel_driver_schema_rollback.py12except Exception as e:CODE
MEDIUM…sis/stress-composer/parallel_driver_schema_rollback.py13 print(f"Error connecting to database: {e}")CODE
LOW…sis/stress-composer/parallel_driver_schema_rollback.py33except Exception as e:CODE
LOW…is/stress-composer/parallel_driver_nested_savepoint.py13except Exception as e:CODE
MEDIUM…is/stress-composer/parallel_driver_nested_savepoint.py14 print(f"Error connecting to database: {e}")CODE
LOW…is/stress-composer/parallel_driver_nested_savepoint.py35except Exception as e:CODE
LOW…esis/stress-composer/parallel_driver_integritycheck.py12except Exception as e:CODE
MEDIUM…esis/stress-composer/parallel_driver_integritycheck.py13 print(f"Error connecting to database: {e}")CODE
LOW…esis/stress-composer/parallel_driver_integritycheck.py32except Exception as e:CODE
LOW…tithesis/stress-composer/parallel_driver_drop_index.py10except Exception as e:CODE
MEDIUM…tithesis/stress-composer/parallel_driver_drop_index.py11 print(f"Error connecting to database: {e}")CODE
LOW…tithesis/stress-composer/parallel_driver_drop_index.py19except Exception as e:CODE
LOW…tithesis/stress-composer/parallel_driver_drop_index.py64except Exception as e:STRING
LOW…thesis/stress-composer/parallel_driver_create_index.py12except Exception as e:CODE
MEDIUM…thesis/stress-composer/parallel_driver_create_index.py13 print(f"Error connecting to database: {e}")CODE
LOW…thesis/stress-composer/parallel_driver_create_index.py33except Exception as e:CODE
LOW…ithesis/stress-composer/parallel_driver_alter_table.py11except Exception as e:CODE
MEDIUM…ithesis/stress-composer/parallel_driver_alter_table.py12 print(f"Error connecting to database: {e}")CODE
LOW…ithesis/stress-composer/parallel_driver_alter_table.py33except Exception as e:CODE
LOW…ithesis/stress-composer/parallel_driver_alter_table.py137except Exception as e:CODE
LOW…g/antithesis/stress-composer/parallel_driver_delete.py12except Exception as e:CODE
MEDIUM…g/antithesis/stress-composer/parallel_driver_delete.py13 print(f"Error connecting to database: {e}")CODE
LOW…g/antithesis/stress-composer/parallel_driver_delete.py36except Exception as e:CODE
LOW…g/antithesis/stress-composer/parallel_driver_update.py12except Exception as e:CODE
MEDIUM…g/antithesis/stress-composer/parallel_driver_update.py13 print(f"Error connecting to database: {e}")CODE
LOW…g/antithesis/stress-composer/parallel_driver_update.py36except Exception as e:CODE
LOW…esis/stress-composer/parallel_driver_wal_checkpoint.py9except Exception as e:CODE
LOW…esis/stress-composer/parallel_driver_wal_checkpoint.py37except Exception as e:CODE
LOW…ntithesis/stress-composer/parallel_driver_savepoint.py13except Exception as e:CODE
MEDIUM…ntithesis/stress-composer/parallel_driver_savepoint.py14 print(f"Error connecting to database: {e}")CODE
LOW…ntithesis/stress-composer/parallel_driver_savepoint.py35except Exception as e:CODE
LOWtesting/antithesis/stress-composer/first_setup.py29except Exception as e:CODE
MEDIUMtesting/antithesis/stress-composer/first_setup.py30 print(f"Error connecting to database: {e}")CODE
LOWtesting/antithesis/stress-composer/first_setup.py39except Exception as e:CODE
MEDIUMtesting/antithesis/stress-composer/first_setup.py40 print(f"Error connecting to database: {e}")CODE
LOW…thesis/stress-composer/parallel_driver_create_table.py12except Exception as e:CODE
MEDIUM…thesis/stress-composer/parallel_driver_create_table.py13 print(f"Error connecting to database: {e}")CODE
LOW…thesis/stress-composer/parallel_driver_create_table.py22except Exception as e:CODE
LOW…thesis/stress-composer/parallel_driver_create_table.py138 except Exception as e:STRING
LOW…antithesis/stress-composer/parallel_driver_rollback.py12except Exception as e:CODE
MEDIUM…antithesis/stress-composer/parallel_driver_rollback.py13 print(f"Error connecting to database: {e}")CODE
LOW…antithesis/stress-composer/parallel_driver_rollback.py32except Exception as e:CODE
LOW…tithesis/stress-composer/parallel_driver_drop_table.py10except Exception as e:CODE
MEDIUM…tithesis/stress-composer/parallel_driver_drop_table.py11 print(f"Error connecting to database: {e}")CODE
LOW…tithesis/stress-composer/parallel_driver_drop_table.py28except Exception as e:CODE
LOW…g/antithesis/stress-composer/parallel_driver_insert.py12except Exception as e:CODE
MEDIUM…g/antithesis/stress-composer/parallel_driver_insert.py13 print(f"Error connecting to database: {e}")CODE
LOW…g/antithesis/stress-composer/parallel_driver_insert.py32except Exception as e:CODE
127 more matches not shown…
Hyper-Verbose Identifiers169 hits · 122 pts
SeverityFileLineSnippetContext
LOW…is/stress-composer/parallel_driver_nested_savepoint.py46def random_values_with_large_blobs():CODE
LOW…ntithesis/stress-composer/parallel_driver_savepoint.py46def random_values_with_large_blobs():CODE
LOWtesting/antithesis/stress-composer/helper_utils.py6def generate_random_identifier(type: str, num: int):CODE
LOWtesting/sqlright/crash_reports/lib/database.py228 def update_session_crash_count(self, session_id: int):CODE
LOWtesting/sqlright/crash_reports/lib/executor.py22 def test_crash_against_tursodb(self, sql_content: str) -> Dict[str, Any]:CODE
LOWtesting/sqlright/crash_reports/lib/executor.py84 def test_crash_against_sqlite(self, sql_content: str) -> Dict[str, Any]:CODE
LOWtesting/cli_tests/constraint.py348def regression_test_update_single_key(limbo: TestTursoShell):CODE
LOWtesting/cli_tests/memory.py127def test_multi_way_hash_joins(turso: TestTursoShell):CODE
LOWtesting/cli_tests/memory.py184def test_hash_join_with_index_preference(turso: TestTursoShell):CODE
LOWtesting/cli_tests/memory.py208def test_hash_join_star_pattern_fallback(turso: TestTursoShell):CODE
LOWtesting/cli_tests/memory.py228def test_hash_join_outer_join_exclusion(turso: TestTursoShell):CODE
LOWtesting/cli_tests/mvcc.py15def test_create_table_with_mvcc():CODE
LOWtesting/cli_tests/cli_test_cases.py97def test_switch_back_to_in_memory():STRING
LOWtesting/cli_tests/cli_test_cases.py163def test_multi_line_single_line_comments_succession():STRING
LOWtesting/cli_tests/cli_test_cases.py232def test_import_csv_create_table_from_header():CODE
LOWtesting/cli_tests/cli_test_cases.py278def test_update_with_limit_and_offset():CODE
LOWtesting/cli_tests/cli_test_cases.py294def test_insert_default_values():CODE
LOWtesting/cli_tests/cli_test_cases.py336def test_copy_memory_db_to_file():CODE
LOWtesting/cli_tests/cli_test_cases.py374def test_tables_with_attached_db():CODE
LOWscripts/update-version.py267def create_git_commit_and_tag(version):CODE
LOWscripts/merge-pr.py109def strip_pr_template_from_body(body: str, template_path=".github/pull_request_template.md") -> str:CODE
LOWscripts/corruption_bisecter.py21def run_sql_and_do_integrity_check(CODE
LOWscripts/antithesis/test_diff_to_targeted_coverage.py53def test_added_line_starting_with_plus_is_not_a_header():STRING
LOWscripts/antithesis/test_diff_to_targeted_coverage.py59def test_non_rust_files_are_excluded():STRING
LOWscripts/corruption-debug-tools/find_corrupt_frame.py61def binary_search_corrupt_frame(db_path: str, wal_path: str, verbose: bool = False) -> int:CODE
LOWbindings/react-native/src/Database.ts41function getReservedBytesForCipher(encryption: EncryptionOpts | undefined): number {CODE
LOWbindings/python/tests/test_database_sync_aio.py127async def test_partial_sync_segment_size():CODE
LOWbindings/python/tests/test_database_sync_aio.py157async def test_partial_sync_prefetch():CODE
LOWbindings/python/tests/test_database.py1338def test_executemany_requires_dml(provider):STRING
LOWbindings/python/tests/test_database.py1347def test_execute_multiple_statements_prohibited(provider):STRING
LOWbindings/python/tests/test_database.py1356def test_description_none_after_insert(provider):STRING
LOWbindings/python/tests/test_database.py1366def test_rowcount_select_is_minus_one(provider):STRING
LOWbindings/python/tests/test_database.py1606def test_named_params_reused_placeholder(provider):STRING
LOWbindings/python/tests/test_database.py1615def test_named_params_extra_key_ignored(provider):STRING
LOWbindings/python/tests/test_database.py1624def test_executemany_named_params_dicts(provider):STRING
LOWbindings/python/tests/test_database.py63def test_fetchall_select_all_users(provider, setup_database):STRING
LOWbindings/python/tests/test_database.py76def test_fetchall_select_user_ids(provider):STRING
LOWbindings/python/tests/test_database.py89def test_in_memory_fetchone_select_all_users(provider):STRING
LOWbindings/python/tests/test_database.py124def test_fetchone_select_all_users(provider):STRING
LOWbindings/python/tests/test_database.py141def test_fetchone_select_max_user_id(provider):STRING
LOWbindings/python/tests/test_database.py244def test_cursor_rowcount_insert(provider):STRING
LOWbindings/python/tests/test_database.py256def test_cursor_rowcount_update(provider):STRING
LOWbindings/python/tests/test_database.py269def test_cursor_rowcount_delete(provider):STRING
LOWbindings/python/tests/test_database.py344def test_connection_executemany(provider):STRING
LOWbindings/python/tests/test_database.py357def test_connection_executescript(provider):STRING
LOWbindings/python/tests/test_database.py425def test_executemany_with_parameters(provider):STRING
LOWbindings/python/tests/test_database.py471def test_insert_returning_partial_fetch(provider):STRING
LOWbindings/python/tests/test_database.py491def test_conflict_clause_ignore(provider):STRING
LOWbindings/python/tests/test_database.py506def test_conflict_clause_replace(provider):STRING
LOWbindings/python/tests/test_database.py521def test_conflict_clause_rollback(provider):STRING
LOWbindings/python/tests/test_database.py556def test_alter_table_add_column(provider):STRING
LOWbindings/python/tests/test_database.py856def test_transaction_begin_commit(provider):STRING
LOWbindings/python/tests/test_database.py873def test_transaction_begin_rollback(provider):STRING
LOWbindings/python/tests/test_database.py890def test_multiple_cursors_same_connection(provider):STRING
LOWbindings/python/tests/test_database.py908def test_cursor_description_before_execute(provider):STRING
LOWbindings/python/tests/test_database.py923def test_cursor_arraysize_default(provider):STRING
LOWbindings/python/tests/test_database.py1118def test_is_not_null_operator(provider):STRING
LOWbindings/python/tests/test_database.py1189def test_upper_lower_functions(provider):STRING
LOWbindings/python/tests/test_database.py1249def test_create_table_if_not_exists(provider):STRING
LOWbindings/python/tests/test_database.py1263def test_drop_table_if_exists(provider):STRING
109 more matches not shown…
Structural Annotation Overuse50 hits · 86 pts
SeverityFileLineSnippetContext
LOWcore/storage/btree.rs5952 // Step 1: Move cursor to the largest key in the left subtree.COMMENT
LOWcore/storage/btree.rs6020 // Step 2: Replace the cell in the parent (interior) page.COMMENT
LOWcore/storage/btree.rs6039 // Step 3: Delete the predecessor cell from the leaf page.COMMENT
LOWcore/mvcc/database/tests.rs15773 // Step 2: Restart (simulates server redeploy)COMMENT
LOWcore/mvcc/database/tests.rs15776 // Step 3: Create more tables + insert into old tables, then checkpointCOMMENT
LOWcore/mvcc/database/tests.rs15793 // Step 4: Checkpoint - all tables get positive root pages, log truncatedCOMMENT
LOWcore/mvcc/database/tests.rs15796 // Step 5: More writes after checkpoint (un-checkpointed, in the log)COMMENT
LOWcore/mvcc/database/tests.rs15760 // Step 1: Create many tables, insert data, checkpointCOMMENT
LOWcore/mvcc/database/tests.rs15810 // Step 6: Restart again - log replay should not panicCOMMENT
LOWcore/mvcc/database/tests.rs17773 // Step 1: open normally so PRAGMA journal_mode=mvcc creates the logical log.COMMENT
LOWcore/mvcc/database/tests.rs17795 // Step 3: re-open with the busy-on-log_tx storage wrapper.COMMENT
LOWcore/mvcc/database/tests.rs17825 // Step 3: open a CONCURRENT tx, do an INSERT, then arm log_tx Busy.COMMENT
LOWcore/mvcc/database/tests.rs17841 // Step 4: from another CONCURRENT tx, do an INSERT; the INSERT should go through.COMMENT
LOWtests/integration/storage/header_version.rs304 // Step 1: Create a WAL mode database with rusqliteCOMMENT
LOWtests/integration/storage/header_version.rs307 // Step 2: Open with limbo WITHOUT MVCC to create WAL data, then close without checkpointingCOMMENT
LOWtests/integration/storage/header_version.rs341 // Step 3: Reopen with MVCC enabled and try to switch via PRAGMACOMMENT
LOWtests/integration/storage/header_version.rs413 // Step 1: Create a WAL mode database and convert to MVCCCOMMENT
LOWtests/integration/storage/header_version.rs416 // Step 2: Open and switch to MVCC mode via PRAGMA, then add some dataCOMMENT
LOWtests/integration/storage/header_version.rs449 // Step 3: Reopen and switch to WAL mode via PRAGMACOMMENT
LOWtests/integration/query_processing/encryption.rs608 // Step 2: re-open with correct key (this uses the DATABASE_MANAGER cache)COMMENT
LOWtests/integration/query_processing/encryption.rs646 // Step 3: Opening with wrong key succeeds, but reading data fails with decryption errorCOMMENT
LOWtests/integration/query_processing/encryption.rs688 // Step 4: Opening without encryption options should fail immediatelyCOMMENT
LOWtests/integration/query_processing/encryption.rs710 // Step 5: verify correct key still works after wrong key attemptCOMMENT
LOWtests/fuzz/journal_mode.rs131 // Step 1: Insert a row in MVCC modeCOMMENT
LOWtests/fuzz/journal_mode.rs136 // Step 2: Switch to WAL (checkpoints the row to B-tree)COMMENT
LOWtests/fuzz/journal_mode.rs148 // Step 3: Switch back to MVCC (creates new MvStore, row only in B-tree)COMMENT
LOWtests/fuzz/journal_mode.rs161 // Step 4: UPDATE the rowCOMMENT
LOWtests/fuzz/journal_mode.rs174 // Step 5: DELETE the rowCOMMENT
LOWtests/fuzz/journal_mode.rs182 // Step 6: Switch to WAL - this triggers checkpointCOMMENT
LOWtests/fuzz/journal_mode.rs232 // Step 1: Create a proper WAL database using SQLite firstCOMMENT
LOWtests/fuzz/journal_mode.rs245 // Step 2: Open the database with LimboCOMMENT
LOWtests/fuzz/journal_mode.rs264 // Step 3: Create SQLite in-memory database for comparisonCOMMENT
LOWtesting/sqltests/docs/adding-backends.md87### Step 1: Create the Backend FileCOMMENT
LOWtesting/sqltests/docs/adding-backends.md239### Step 2: Create the Bridge ScriptCOMMENT
LOWtesting/sqltests/docs/adding-backends.md284### Step 3: Register the BackendCOMMENT
LOWtesting/sqltests/docs/adding-backends.md296### Step 4: Add CLI OptionCOMMENT
LOW…ting/differential-oracle/fuzzer/custom_types_fuzzer.rs2217 // Step 1: INSERTCOMMENT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts47 // Step 1: Get WAL infoCOMMENT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts54 // Step 2: Find corrupting frameCOMMENT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts57 // Step 3: Run integrity checkCOMMENT
LOWexamples/react-native/README.md35# Step 1: install binding deps (--ignore-scripts avoids chicken-and-egg problem)COMMENT
LOWexamples/react-native/README.md38# Step 2: install example app (this will now find bob when prepare runs)COMMENT
LOWscripts/run-sqlancer.sh116# Step 1: Build Limbo JDBC driver if neededCOMMENT
LOWscripts/run-sqlancer.sh155# Step 2: Clone/update SQLancerCOMMENT
LOWscripts/run-sqlancer.sh168# Step 3: Add/update Limbo providerCOMMENT
LOWscripts/run-sqlancer.sh200# Step 4: Patch pom.xml to use Limbo JAR if not already doneCOMMENT
LOWscripts/run-sqlancer.sh223# Step 5: Build SQLancerCOMMENT
LOWscripts/run-sqlancer.sh227# Step 6: Run SQLancerCOMMENT
LOWperf/tpc-h/README.md12## Step 1: Run the benchmarksCOMMENT
LOWperf/tpc-h/README.md28## Step 2: Plot the resultsCOMMENT
Cross-Language Confusion24 hits · 86 pts
SeverityFileLineSnippetContext
HIGHtesting/cli_tests/extensions.py94 turso.run_test_fn(f".load {extension_path}", null)STRING
HIGHtesting/cli_tests/extensions.py106 turso.run_test_fn("SELECT regexp_substr('the year is unknow', '[0-9]+');", null)STRING
HIGHtesting/cli_tests/extensions.py129 null,STRING
HIGHtesting/cli_tests/extensions.py195 null,STRING
HIGHtesting/cli_tests/extensions.py460 null,STRING
HIGHtesting/cli_tests/extensions.py470 null,STRING
HIGHtesting/cli_tests/extensions.py473 turso.run_test_fn("insert into t values ('other', 'value');", null)STRING
HIGHtesting/cli_tests/extensions.py486 null,STRING
HIGHtesting/cli_tests/extensions.py496 null,STRING
HIGHtesting/cli_tests/extensions.py502 turso.run_test_fn("update t set value = 'updated' where key = 'key33';", null)STRING
HIGHtesting/cli_tests/extensions.py513 turso.run_test_fn("update t set value = 'updated2';", null)STRING
HIGHtesting/cli_tests/extensions.py522 turso.run_test_fn("delete from t limit 96;", null, "can delete 96 rows")STRING
HIGHtesting/cli_tests/extensions.py524 turso.run_test_fn("update t set key = '100' where 1;", null, "where clause evaluates properly")STRING
HIGHtesting/cli_tests/extensions.py867 null,STRING
HIGHtesting/cli_tests/extensions.py895 turso.run_test_fn("DROP TABLE csv;", null, "Drop CSV table")STRING
HIGHexamples/python/sync_example.py70 conn.push()CODE
HIGHbindings/python/tests/test_database_sync_aio.py65 await conn.push()CODE
HIGHbindings/python/tests/test_database_sync_aio.py92 await conn.push()CODE
HIGHbindings/python/tests/test_sqlalchemy.py492 sync.push()CODE
HIGHbindings/python/tests/test_database_sync.py66 conn.push()CODE
HIGHbindings/python/tests/test_database_sync.py92 conn.push()CODE
HIGHbindings/python/turso/sqlalchemy/dialect.py352 sync.push() # Push local changesSTRING
HIGHbindings/python/turso/sqlalchemy/dialect.py509 sync.push()STRING
HIGHbindings/python/turso/sqlalchemy/__init__.py30 sync.push() # Push local changesSTRING
Verbosity Indicators49 hits · 85 pts
SeverityFileLineSnippetContext
LOWcore/incremental/compiler.rs2056 // We need to check if it's true (non-zero)COMMENT
LOWcore/translate/trigger_exec.rs709 // For UPDATE OF, we need to check if any of the specified columnsCOMMENT
LOWcore/translate/trigger_exec.rs752 // For UPDATE OF, we need to check if any of the specified columnsCOMMENT
LOWcore/translate/alter.rs2605 // We need to check if the column exists in the table being renamedCOMMENT
LOWcore/translate/expr/translator.rs232 // If LHS is NULL, we need to check if ephemeral is empty first.COMMENT
LOWcore/storage/btree.rs5952 // Step 1: Move cursor to the largest key in the left subtree.COMMENT
LOWcore/storage/btree.rs6020 // Step 2: Replace the cell in the parent (interior) page.COMMENT
LOWcore/storage/btree.rs6039 // Step 3: Delete the predecessor cell from the leaf page.COMMENT
LOWcore/storage/btree.rs8619 // otherwise, we need to check if we have enough spaceCOMMENT
LOWcore/vdbe/execute.rs13673 // Ephemeral tables have their own pager, so we need to check if this is anCOMMENT
LOWcore/mvcc/database/tests.rs15773 // Step 2: Restart (simulates server redeploy)COMMENT
LOWcore/mvcc/database/tests.rs15776 // Step 3: Create more tables + insert into old tables, then checkpointCOMMENT
LOWcore/mvcc/database/tests.rs15793 // Step 4: Checkpoint - all tables get positive root pages, log truncatedCOMMENT
LOWcore/mvcc/database/tests.rs15796 // Step 5: More writes after checkpoint (un-checkpointed, in the log)COMMENT
LOWcore/mvcc/database/tests.rs15760 // Step 1: Create many tables, insert data, checkpointCOMMENT
LOWcore/mvcc/database/tests.rs15810 // Step 6: Restart again - log replay should not panicCOMMENT
LOWcore/mvcc/database/tests.rs17773 // Step 1: open normally so PRAGMA journal_mode=mvcc creates the logical log.COMMENT
LOWcore/mvcc/database/tests.rs17795 // Step 3: re-open with the busy-on-log_tx storage wrapper.COMMENT
LOWcore/mvcc/database/tests.rs17825 // Step 3: open a CONCURRENT tx, do an INSERT, then arm log_tx Busy.COMMENT
LOWcore/mvcc/database/tests.rs17841 // Step 4: from another CONCURRENT tx, do an INSERT; the INSERT should go through.COMMENT
LOWtests/integration/storage/header_version.rs304 // Step 1: Create a WAL mode database with rusqliteCOMMENT
LOWtests/integration/storage/header_version.rs307 // Step 2: Open with limbo WITHOUT MVCC to create WAL data, then close without checkpointingCOMMENT
LOWtests/integration/storage/header_version.rs341 // Step 3: Reopen with MVCC enabled and try to switch via PRAGMACOMMENT
LOWtests/integration/storage/header_version.rs413 // Step 1: Create a WAL mode database and convert to MVCCCOMMENT
LOWtests/integration/storage/header_version.rs416 // Step 2: Open and switch to MVCC mode via PRAGMA, then add some dataCOMMENT
LOWtests/integration/storage/header_version.rs449 // Step 3: Reopen and switch to WAL mode via PRAGMACOMMENT
LOWtests/integration/query_processing/encryption.rs608 // Step 2: re-open with correct key (this uses the DATABASE_MANAGER cache)COMMENT
LOWtests/integration/query_processing/encryption.rs646 // Step 3: Opening with wrong key succeeds, but reading data fails with decryption errorCOMMENT
LOWtests/integration/query_processing/encryption.rs688 // Step 4: Opening without encryption options should fail immediatelyCOMMENT
LOWtests/integration/query_processing/encryption.rs710 // Step 5: verify correct key still works after wrong key attemptCOMMENT
LOWtests/fuzz/journal_mode.rs131 // Step 1: Insert a row in MVCC modeCOMMENT
LOWtests/fuzz/journal_mode.rs136 // Step 2: Switch to WAL (checkpoints the row to B-tree)COMMENT
LOWtests/fuzz/journal_mode.rs148 // Step 3: Switch back to MVCC (creates new MvStore, row only in B-tree)COMMENT
LOWtests/fuzz/journal_mode.rs161 // Step 4: UPDATE the rowCOMMENT
LOWtests/fuzz/journal_mode.rs174 // Step 5: DELETE the rowCOMMENT
LOWtests/fuzz/journal_mode.rs182 // Step 6: Switch to WAL - this triggers checkpointCOMMENT
LOWtests/fuzz/journal_mode.rs232 // Step 1: Create a proper WAL database using SQLite firstCOMMENT
LOWtests/fuzz/journal_mode.rs245 // Step 2: Open the database with LimboCOMMENT
LOWtests/fuzz/journal_mode.rs264 // Step 3: Create SQLite in-memory database for comparisonCOMMENT
LOW…ting/differential-oracle/fuzzer/custom_types_fuzzer.rs2217 // Step 1: INSERTCOMMENT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts47 // Step 1: Get WAL infoCOMMENT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts54 // Step 2: Find corrupting frameCOMMENT
LOWtesting/sqlancer/sqlancer-runner/corruptionAnalysis.ts57 // Step 3: Run integrity checkCOMMENT
LOWscripts/run-sqlancer.sh116# Step 1: Build Limbo JDBC driver if neededCOMMENT
LOWscripts/run-sqlancer.sh155# Step 2: Clone/update SQLancerCOMMENT
LOWscripts/run-sqlancer.sh168# Step 3: Add/update Limbo providerCOMMENT
LOWscripts/run-sqlancer.sh200# Step 4: Patch pom.xml to use Limbo JAR if not already doneCOMMENT
LOWscripts/run-sqlancer.sh223# Step 5: Build SQLancerCOMMENT
LOWscripts/run-sqlancer.sh227# Step 6: Run SQLancerCOMMENT
Fake / Example Data75 hits · 82 pts
SeverityFileLineSnippetContext
LOWcore/benches/json_benchmark.rs43 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers anCODE
LOWcore/benches/json_benchmark.rs43 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers anCODE
LOWcore/benches/json_benchmark.rs43 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers anCODE
LOWcore/benches/json_benchmark.rs43 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers anCODE
LOWcore/benches/json_benchmark.rs43 r#"[{"metadata":{"title":"Standard JSON Test File","description":"A complex JSON file for testing parsers anCODE
LOWcore/benches/json_benchmark.rs69 "street": "123 Main St",CODE
LOWcore/benches/json_benchmark.rs708 "name": "Jane Doe",CODE
LOWserverless/javascript/README.md60 "INSERT INTO users (email) VALUES ('user@example.com')",CODE
LOWserverless/javascript/README.md61 "INSERT INTO users (email) VALUES ('admin@example.com')",CODE
LOWserverless/javascript/README.md107 "INSERT INTO users (email) VALUES ('user@example.com')",CODE
LOWserverless/javascript/README.md108 "INSERT INTO users (email) VALUES ('admin@example.com')",CODE
LOWserverless/javascript/src/statement.ts82 * console.log(row); // [1, "Alice", "alice@example.org"]COMMENT
LOWserverless/javascript/src/statement.ts159 * const result = await stmt.run(['John Doe', 'john.doe@example.com']);COMMENT
LOWdocs/manual.md1133UPDATE users SET name='John Doe' WHERE id=1;CODE
LOWdocs/language-reference/book/print.html4458INSERT INTO customers VALUES (1, 'Alice', 'alice@example.com', '555-0100');CODE
LOWdocs/language-reference/book/print.html5552INSERT INTO contacts VALUES ('Bob', '555-1234', NULL);CODE
LOWdocs/language-reference/book/print.html5602INSERT INTO contacts VALUES ('Bob', '555-1234', NULL);CODE
LOWdocs/language-reference/book/print.html7785INSERT INTO contacts VALUES (1, 'Alice', '["555-0100","555-0101"]');CODE
LOWdocs/language-reference/book/print.html7786INSERT INTO contacts VALUES (2, 'Bob', '["555-0200"]');CODE
LOWtesting/conformance/javascript/__test__/async.test.js434 { sql: "INSERT INTO users(name, email) VALUES (?, ?)", args: ["Joey", "joey@example.org"] },CODE
LOWtesting/conformance/javascript/__test__/async.test.js435 { sql: "INSERT INTO users(name, email) VALUES (?, ?)", args: ["Sally", "sally@example.org"] },CODE
LOWtesting/conformance/javascript/__test__/async.test.js436 { sql: "INSERT INTO users(name, email) VALUES (:name, :email)", args: { name: "Junior", email: "junior@example.orgCODE
LOWtesting/conformance/javascript/__test__/async.test.js447 { name: "Joey", email: "joey@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js448 { name: "Sally", email: "sally@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js449 { name: "Junior", email: "junior@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js556 { name: "Joey", email: "joey@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js557 { name: "Sally", email: "sally@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js558 { name: "Junior", email: "junior@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js579 { name: "Joey", email: "joey@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js580 { name: "Sally", email: "sally@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js581 { name: "Junior", email: "junior@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js25 "INSERT INTO users (id, name, email) VALUES (1, 'Alice', 'alice@example.org')"CODE
LOWtesting/conformance/javascript/__test__/async.test.js177 t.is(row.email, "alice@example.org");CODE
LOWtesting/conformance/javascript/__test__/async.test.js417 { sql: "UPDATE users SET email = ? WHERE id = 1", args: ["alice2@example.org"] },CODE
LOWtesting/conformance/javascript/__test__/async.test.js665 { id: 1, name: "Alice", email: "alice@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js673 const expected = [{ id: 1, name: "Alice", email: "alice@example.org" }];CODE
LOWtesting/conformance/javascript/__test__/async.test.js724 t.deepEqual(await stmt.raw().get(), [1, 'Alice', 'alice@example.org']);CODE
LOWtesting/conformance/javascript/__test__/async.test.js769 t.deepEqual(await stmt.raw().get(1), [1, "Alice", "alice@example.org"]);CODE
LOWtesting/conformance/javascript/__test__/async.test.js847 { id: 1, name: "Alice", email: "alice@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js861 [1, "Alice", "alice@example.org"],CODE
LOWtesting/conformance/javascript/__test__/async.test.js879 { id: 1, name: "Alice", email: "alice@example.org" },CODE
LOWtesting/conformance/javascript/__test__/async.test.js890 [1, "Alice", "alice@example.org"],CODE
LOWtesting/conformance/javascript/__test__/async.test.js912 [1n, "Alice", "alice@example.org"],CODE
LOWtesting/conformance/javascript/__test__/async.test.js923 [1n, "Alice", "alice@example.org"],CODE
LOWtesting/conformance/javascript/__test__/async.test.js1218 db.exec(`INSERT INTO users (name, email) VALUES ('User${i}', 'user${i}@example.org')`)CODE
LOWtesting/conformance/javascript/__test__/async.test.js1323 await insert.run(["TxCommit", "tx-commit@example.org"]);CODE
LOWtesting/conformance/javascript/__test__/async.test.js1347 await insert.run(["TxRollback", "tx-rollback@example.org"]);CODE
LOWtesting/conformance/javascript/__test__/async.test.js1365 await insert.run(["WillRollback", "will-rollback@example.org"]);CODE
LOWtesting/conformance/javascript/__test__/async.test.js1369 await duplicateInsert.run([1, "DuplicateId", "duplicate-id@example.org"]);CODE
LOWtesting/conformance/javascript/__test__/async.test.js1385 await insert.run(["AfterRollback", "after-rollback@example.org"]);CODE
LOWtesting/conformance/javascript/__test__/sync.test.js155 { name: "Joey", email: "joey@example.org" },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js156 { name: "Sally", email: "sally@example.org" },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js157 { name: "Junior", email: "junior@example.org" },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js205 { name: "Joey", email: "joey@example.org" },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js206 { name: "Sally", email: "sally@example.org" },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js207 { name: "Junior", email: "junior@example.org" },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js12 "INSERT INTO users (id, name, email) VALUES (1, 'Alice', 'alice@example.org')"CODE
LOWtesting/conformance/javascript/__test__/sync.test.js224 { sql: "INSERT INTO users (id, name, email) VALUES (?, ?, ?)", args: [3, "Carol", "carol@example.org"] },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js272 { sql: "INSERT INTO users (id, name, email) VALUES (?, ?, ?)", args: [10, "Dan", "dan@example.org"] },CODE
LOWtesting/conformance/javascript/__test__/sync.test.js273 { sql: "INSERT INTO users (id, name, email) VALUES (?, ?, ?)", args: [1, "Dup", "dup@example.org"] },CODE
15 more matches not shown…
Unused Imports86 hits · 81 pts
SeverityFileLineSnippetContext
LOWscripts/corruption-debug-tools/lib/__init__.py7CODE
LOWscripts/corruption-debug-tools/lib/__init__.py7CODE
LOWscripts/corruption-debug-tools/lib/__init__.py7CODE
LOWscripts/corruption-debug-tools/lib/__init__.py12CODE
LOWscripts/corruption-debug-tools/lib/__init__.py12CODE
LOWscripts/corruption-debug-tools/lib/__init__.py12CODE
LOWscripts/corruption-debug-tools/lib/__init__.py12CODE
LOWscripts/corruption-debug-tools/lib/__init__.py12CODE
LOWscripts/corruption-debug-tools/lib/__init__.py12CODE
LOWscripts/corruption-debug-tools/lib/__init__.py20CODE
LOWscripts/corruption-debug-tools/lib/__init__.py20CODE
LOWscripts/corruption-debug-tools/lib/__init__.py20CODE
LOWscripts/corruption-debug-tools/lib/__init__.py20CODE
LOWscripts/corruption-debug-tools/lib/__init__.py20CODE
LOWscripts/corruption-debug-tools/lib/__init__.py20CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWscripts/corruption-debug-tools/lib/__init__.py28CODE
LOWbindings/python/turso/lib_aio.py1CODE
LOWbindings/python/turso/lib.py1CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/__init__.py5CODE
LOWbindings/python/turso/lib_sync.py1CODE
LOWbindings/python/turso/lib_sync_aio.py1CODE
LOWbindings/python/turso/aio/__init__.py1CODE
LOWbindings/python/turso/aio/__init__.py1CODE
LOWbindings/python/turso/aio/__init__.py1CODE
LOWbindings/python/turso/aio/sync/__init__.py1CODE
LOWbindings/python/turso/aio/sync/__init__.py1CODE
LOWbindings/python/turso/aio/sync/__init__.py1CODE
LOWbindings/python/turso/aio/sync/__init__.py1CODE
LOWbindings/python/turso/aio/sync/__init__.py7CODE
LOWbindings/python/turso/sqlalchemy/dialect.py9CODE
LOWbindings/python/turso/sqlalchemy/__init__.py50CODE
LOWbindings/python/turso/sqlalchemy/__init__.py50CODE
26 more matches not shown…
Self-Referential Comments17 hits · 47 pts
SeverityFileLineSnippetContext
MEDIUMdocs/language-reference/book/print.html9364# Create an encrypted databaseCOMMENT
MEDIUMtesting/antithesis/stress-composer/first_setup.py105 # Create a composite index if table has multiple columnsSTRING
MEDIUM…thesis/stress-composer/parallel_driver_create_table.py99 # Create the tableSTRING
MEDIUMtesting/system/gen-database.py10# Create the user tableCOMMENT
MEDIUMexamples/python/encryption.py30 # Create an encrypted databaseCOMMENT
MEDIUMexamples/python/encryption.py41 # Create a table and insert sensitive dataCOMMENT
MEDIUMscripts/merge-pr.py204 # Create a temporary file for the commit messageCOMMENT
MEDIUM.github/workflows/release.yml401 # Create a GitHub Release while uploading all files to itCOMMENT
MEDIUMbindings/python/tests/test_database.py33 # Create a new database fileCOMMENT
MEDIUMbindings/python/tests/test_database_aio.py26 # Create a new database fileCOMMENT
MEDIUMbindings/python/turso/lib_aio.py39 # Create the blocking connection inside the worker thread onceCOMMENT
MEDIUMbindings/python/turso/lib_aio.py339 # Create a connector that opens a blocking Connection using the existing driver.COMMENT
MEDIUMperf/connection/gen-database.py22 # Create the specified number of tablesCOMMENT
MEDIUMperf/connection/rusqlite/gen-database.py22 # Create the specified number of tablesCOMMENT
MEDIUMperf/connection/limbo/gen-database.py22 # Create the specified number of tablesCOMMENT
MEDIUMperf/latency/rusqlite/gen-database.py17# Create the user tableCOMMENT
MEDIUMperf/latency/limbo/gen-database.py17# Create the user tableCOMMENT
AI Slop Vocabulary11 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMdeny.toml5# Include all targets for comprehensive checkingCOMMENT
MEDIUMcore/Cargo.toml78# harness resolves aristo + aristo-macros from crates.io, so no vendored mountCOMMENT
MEDIUMcore/translate/display.rs608// Definitely not perfect yetCOMMENT
MEDIUMcore/translate/emitter/mod.rs774 /// utilize the same limit register, but it is initialized only once.COMMENT
MEDIUMcore/mvcc/database/tests.rs2052#[ignore = "Needs a dedicated bootstrap harness that can create header=MVCC + missing metadata + torn short log atomicalCOMMENT
MEDIUMcore/mvcc/persistent_storage/logical_log.rs5579 /// Why this matters: Edge-case frame shapes must remain parseable to keep format handling robust.COMMENT
MEDIUMtests/integration/storage/header_version.rs518/// This ensures mode switching is robust and doesn't corrupt dataCOMMENT
MEDIUMtests/fuzz/mod.rs325 // because this is the only way to utilize an index efficiently for seeking. This is called the "left-prefix rulCOMMENT
LOWsqlite/parser/src/lexer.rs184#[derive(Clone, PartialEq, Eq, Debug)] // do not derive Copy for Token, just use .clone() when neededCOMMENT
MEDIUMcli/app.rs111 #[clap(long, help = "Start MVCC concurrent transaction harness")]COMMENT
MEDIUM.github/workflows/aristo-verify.yml3# builds, and runs the conformance harness on Aretta's infrastructure andCOMMENT
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHperf/connection/gen-database.py0generate sqlite databases with specified number of tables for benchmarking.STRING
HIGHperf/connection/rusqlite/gen-database.py0generate sqlite databases with specified number of tables for benchmarking.STRING
HIGHperf/connection/limbo/gen-database.py0generate sqlite databases with specified number of tables for benchmarking.STRING
HIGHperf/connection/gen-database.py0create table if not exists {table_name} ( id integer primary key, name text, value integer, created_at timestamp defaultSTRING
HIGHperf/connection/rusqlite/gen-database.py0create table if not exists {table_name} ( id integer primary key, name text, value integer, created_at timestamp defaultSTRING
HIGHperf/connection/limbo/gen-database.py0create table if not exists {table_name} ( id integer primary key, name text, value integer, created_at timestamp defaultSTRING
Deep Nesting27 hits · 27 pts
SeverityFileLineSnippetContext
LOWtesting/antithesis/stress-composer/helper_utils.py10CODE
LOWtesting/sqlright/crash_reports/query_crashes.py289CODE
LOWtesting/sqlright/crash_reports/lib/scanner.py12CODE
LOWtesting/sqlright/crash_reports/lib/scanner.py175CODE
LOWtesting/cli_tests/constraint.py370CODE
LOWtesting/cli_tests/write.py143CODE
LOWtesting/cli_tests/test_turso_cli.py30CODE
LOWexamples/python/concurrent_writes.py24CODE
LOWscripts/update-version.py107CODE
LOWscripts/release-status.py39CODE
LOWscripts/release-status.py120CODE
LOWscripts/corruption_bisecter.py67CODE
LOWscripts/compare-divan-std-turso.py139CODE
LOWscripts/antithesis/diff_to_targeted_coverage.py29CODE
LOWscripts/corruption-debug-tools/page_info.py28CODE
LOWscripts/corruption-debug-tools/page_diff.py22CODE
LOWscripts/corruption-debug-tools/track_rowid.py26CODE
LOWscripts/corruption-debug-tools/page_history.py27CODE
LOWscripts/corruption-debug-tools/lib/record.py82CODE
LOWscripts/corruption-debug-tools/lib/record.py114CODE
LOWscripts/corruption-debug-tools/lib/record.py186CODE
LOWscripts/corruption-debug-tools/lib/record.py225CODE
LOWbindings/python/tests/utils.py98CODE
LOWbindings/python/tests/test_database_sync.py223CODE
LOWbindings/python/turso/lib_sync.py108CODE
LOWbindings/python/turso/lib_sync.py228CODE
LOWbindings/python/turso/lib_sync.py288CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALsql_generation/model/query/select.rs344 where_clause: Some(self.body.select.where_clause.0.clone().into_boxed()),CODE
CRITICALcore/mvcc/database/checkpoint_state_machine.rs1284 version.0.row.id.row_id.clone(),CODE
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippetContext
LOWcore/statement.rs1074 /// ### Return valueCOMMENT
LOW…thesis/stress-composer/parallel_driver_create_index.py79 # Check if this combination already has an indexSTRING
LOWtesting/sqlright/crash_reports/lib/scanner.py197 # Check if file still exists (may have been deleted)COMMENT
LOWtesting/sqlright/crash_reports/lib/database.py65 # Check if finding_type column exists on crashes tableSTRING
LOWscripts/install-sqlite3.sh98 # Check if already installedCOMMENT
LOWscripts/corruption-debug-tools/find_corrupt_frame.py84 # Check if full WAL is actually corruptCOMMENT
LOWscripts/corruption-debug-tools/verify_stale.py123 # Check if it's closeCOMMENT
LOWscripts/corruption-debug-tools/verify_stale.py139 # Check if corrupt looks like stale + insertionsCOMMENT
LOWbindings/python/turso/lib.py701 # Set description to NoneCOMMENT
Modern Structural Boilerplate11 hits · 10 pts
SeverityFileLineSnippetContext
LOWtesting/sqlright/crash_reports/lib/scanner.py9logger = logging.getLogger(__name__)CODE
LOWtesting/sqlright/crash_reports/lib/executor.py8logger = logging.getLogger(__name__)CODE
LOWscripts/corruption-debug-tools/lib/__init__.py40__all__ = [CODE
LOWbindings/python/turso/lib_aio.py238 def _update_meta_cache(self, description, lastrowid, rowcount) -> None:CODE
LOWbindings/python/turso/lib.py436 def set_query_timeout(self, milliseconds: int) -> None:CODE
LOWbindings/python/turso/__init__.py29__all__ = [CODE
LOWbindings/python/turso/aio/__init__.py3__all__ = [CODE
LOWbindings/python/turso/aio/sync/__init__.py11__all__ = [CODE
LOWbindings/python/turso/sqlalchemy/dialect.py29logger = logging.getLogger(__name__)CODE
LOWbindings/python/turso/sqlalchemy/__init__.py57__all__ = [CODE
LOWbindings/python/turso/sync/__init__.py31__all__ = [CODE
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtesting/cli_tests/console.py18CODE
LOWtesting/cli_tests/console.py45CODE
LOWtesting/cli_tests/console.py72CODE
LOWtesting/cli_tests/console.py99CODE
LOWbindings/python/turso/lib_sync.py420CODE
LOWbindings/python/turso/lib_sync_aio.py66CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbindings/python/turso/sqlalchemy/dialect.py486 Get the underlying turso.sync.ConnectionSync from a SQLAlchemy connection. This provides access to sync-specifSTRING
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWextensions/csv/src/lib.rs9//! ## Example usage:COMMENT
LOWscripts/clean_interactions.sh20# Usage:COMMENT
LOWscripts/diff.sh4# Usage:COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcore/storage/wal.rs3352 // don't forget to release the write-lock ifCOMMENT
TODO Padding1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsql_generation/generation/predicate/binary.rs125 escape: None, // TODO: implementCODE