Repository Analysis

orioledb/orioledb

OrioleDB – building a modern cloud-native storage engine (... and solving some PostgreSQL wicked problems)

6.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of orioledb/orioledb, a C project with 4,152 GitHub stars. SynthScan v2.0 examined 190,269 lines of code across 355 source files, recording 920 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 6.4 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

6.4
Adjusted Score
6.4
Raw Score
100%
Time Factor
2026-08-09
Last Push
4.2K
Stars
C
Language
190.3K
Lines of Code
355
Files
920
Pattern Hits
2026-08-09
Scan Date
0.12
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 41MEDIUM 122LOW 757

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 920 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators102 hits · 318 pts
SeverityFileLineSnippetContext
MEDIUMtest/integration/pgbackrest_test.py201 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py203 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py209 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py211 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py219 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py221 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py228 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py230 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py265 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py267 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py274 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py276 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py293 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py295 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py302 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py304 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py421 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py423 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py429 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py431 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py441 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py444 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py463 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py465 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py474 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py476 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py546 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py548 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py27 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py29 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py69 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py71 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py350 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py352 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py384 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py386 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py490 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/pgbackrest_test.py492 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py310 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py312 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py322 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py324 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py434 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py436 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py442 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py444 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py520 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py522 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py23 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py25 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py54 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py56 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py242 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py244 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py259 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py261 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py278 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py280 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py357 # ------------------------------------------------------------------COMMENT
MEDIUMtest/integration/walg_test.py359 # ------------------------------------------------------------------COMMENT
42 more matches not shown…
Hyper-Verbose Identifiers396 hits · 290 pts
SeverityFileLineSnippetContext
LOWorioledb_s3_loader.py336 def download_files_in_directory(self,STRING
LOWorioledb_s3_loader.py406 def download_unchanged_small_files(self, bucket_name: str,STRING
LOWorioledb_s3_loader.py494 def get_unchanged_file_checksums(self, file_checksums_name: str,STRING
LOWorioledb_s3_loader.py541def get_orioledb_control_data(data_dir: str):STRING
LOWtypedefs_gen.py41def extract_typedefs_dwarfdump():CODE
LOWtest/integration/pgbackrest_test.py553 def test_incr_backup_block_diffs_orioledb_file(self):CODE
LOWtest/integration/pgbackrest_test.py170 def _wait_for_history_archive(self, standby, timeout=30):CODE
LOWtest/integration/walg_test.py526 def test_delta_backup_ships_whole_orioledb_file(self):CODE
LOWtest/integration/walg_test.py164 def _wait_for_history_archive(self, standby, timeout=30):CODE
LOWtest/integration/walg_test.py219 def _restore_primary_in_place(self, recovery_lines):CODE
LOWtest/t/base_test.py419 def crash_with_os_buffer_loss(self, mark_name: str = 'crash_point'):CODE
LOWtest/t/base_test.py723def wait_checkpointer_stopevent(node):CODE
LOWtest/t/base_test.py761def release_parked_flush_on_lock(node,CODE
LOWtest/t/parallel_test.py9 def test_parallel_empty_select(self):CODE
LOWtest/t/parallel_test.py33 def test_not_using_gather_during_recovery_for_sql_opclass_function(self):STRING
LOWtest/t/eviction_bgwriter_test.py16 def test_eviction_multiple_bgwriters(self):CODE
LOWtest/t/eviction_bgwriter_test.py42 def test_eviction_bgwriter_invalidation(self):CODE
LOWtest/t/eviction_bgwriter_test.py70 def test_bgwriter_keeps_number_across_crash(self):CODE
LOWtest/t/checkpoint_update_base_test.py13 def concurrent_update_eviction_base(self,CODE
LOWtest/t/incomplete_split_test.py44 def test_incomplete_leaf_insert_fix(self):STRING
LOWtest/t/incomplete_split_test.py72 def test_incomplete_leaf_insert_checkpoint_fix_middle(self):STRING
LOWtest/t/incomplete_split_test.py106 def test_incomplete_leaf_insert_checkpoint_fix_end(self):STRING
LOWtest/t/incomplete_split_test.py140 def test_incomplete_leaf_checkpoint_fix(self):STRING
LOWtest/t/incomplete_split_test.py180 def test_incomplete_node_insert_fix(self):STRING
LOWtest/t/incomplete_split_test.py206 def test_incomplete_node_checkpoint_fix(self):STRING
LOWtest/t/incomplete_split_test.py253 def test_incomplete_split_sequence(self):STRING
LOWtest/t/incomplete_split_test.py443 def test_tbl_check_sees_pending_tmpbuf_freelist(self):STRING
LOWtest/t/indices_build_test.py16 def test_index_build_checkpoint(self):CODE
LOWtest/t/indices_build_test.py59 def test_index_build_recovery(self):STRING
LOWtest/t/indices_build_test.py109 def test_drop_primary_recovery(self):CODE
LOWtest/t/indices_build_test.py163 def test_create_primary_recovery(self):STRING
LOWtest/t/indices_build_test.py291 def test_index_build_replication(self):STRING
LOWtest/t/indices_build_test.py418 def test_multiple_indices_build_replication(self):STRING
LOWtest/t/indices_build_test.py586 def test_indices_build_concurrent_checkpoint(self):STRING
LOWtest/t/merge_test.py34 def test_non_concurrent_merge_and_checkpoint(self):CODE
LOWtest/t/merge_test.py60 def _open_merge_diff_snapshot(self, table):CODE
LOWtest/t/merge_test.py92 def test_merge_diff_old_snapshot_read(self):CODE
LOWtest/t/merge_test.py128 def test_merge_diff_old_snapshot_index_read(self):CODE
LOWtest/t/merge_test.py166 def test_merge_diff_old_snapshot_point_read(self):CODE
LOWtest/t/merge_test.py205 def test_split_diff_old_snapshot_read(self):CODE
LOWtest/t/merge_test.py293 def test_split_diff_update_grow(self):CODE
LOWtest/t/merge_test.py319 def test_non_concurrent_merge(self):CODE
LOWtest/t/merge_test.py341 def test_merge_free_extent_concurrent_checkpoint(self):CODE
LOWtest/t/merge_test.py404 def test_concurrent_checkpoint_begin(self):CODE
LOWtest/t/merge_test.py407 def test_concurrent_checkpoint_middle(self):CODE
LOWtest/t/merge_test.py410 def test_concurrent_checkpoint_end(self):CODE
LOWtest/t/merge_test.py413 def concurrent_checkpoint_base(self, delete_offset, bp_value,CODE
LOWtest/t/rewind_time_test.py29 def test_rewind_oriole_shutdown(self):CODE
LOWtest/t/rewind_time_test.py70 def test_rewind_oriole_restart(self):CODE
LOWtest/t/move_database_test.py48def create_and_clear_directory(base_path, dir_name):CODE
LOWtest/t/move_database_test.py241 def test_move_from_user_ts_full_database(self):CODE
LOWtest/t/move_database_test.py259 def test_move_from_default_ts_full_database(self):CODE
LOWtest/t/move_database_test.py278 def test_move_from_default_ts_only_indexes(self):CODE
LOWtest/t/move_database_test.py302 def test_move_from_default_ts_only_tables(self):CODE
LOWtest/t/move_database_test.py326 def test_move_from_default_ts_some_relations(self):CODE
LOWtest/t/move_database_test.py372 def test_replication_database_move(self):CODE
LOWtest/t/move_database_test.py519 def test_replication_of_moving_database_after_restart(self):CODE
LOWtest/t/move_database_test.py665 def test_replication_of_moving_database_evicted_relation(self):CODE
LOWtest/t/recovery_opclass_test.py14 def test_simple_sql_cmp_function(self):CODE
LOWtest/t/recovery_opclass_test.py64 def test_deep_sql_cmp_function(self):STRING
336 more matches not shown…
Cross-Language Confusion35 hits · 218 pts
SeverityFileLineSnippetContext
HIGHtest/t/transaction_test.py89 and tripsthe Assert(lo >= 0 && lo <= commandIndex) inCODE
HIGHtest/t/s3_inherits_test.py74 alter table o_test_3 alter a set not null;CODE
HIGHtest/t/s3_inherits_test.py105 alter table o_test_2 add column a2 int constraint nn not null;CODE
HIGHtest/t/s3_inherits_test.py106 alter table o_test_3 alter column a set not null;CODE
HIGHtest/t/s3_inherits_test.py107 alter table o_test_1 alter column a drop not null;CODE
HIGHtest/t/s3_inherits_test.py108 alter table o_test_1 alter column a set not null;CODE
HIGHtest/t/s3_inherits_test.py109 alter table o_test_3 alter column a2 set not null;CODE
HIGHtest/t/s3_inherits_test.py110 alter table o_test_2 alter column a2 drop not null;CODE
HIGHtest/t/s3_inherits_test.py140 create table o_test_2 (check (a = 1 or a = null)) inherits(o_test_1)USING orioledb;CODE
HIGHtest/t/s3_inherits_test.py143 insert into o_test_2 values(null);CODE
HIGHtest/t/s3_inherits_test.py347 alter table o_test_1 add constraint c1 check (a is not null);CODE
HIGHtest/t/s3_inherits_test.py352 alter table o_test_1 add check (a is not null);CODE
HIGHtest/t/s3_inherits_test.py354 alter table o_test_1 add constraint c1 check (a is not null);CODE
HIGHtest/t/replication_test.py932 COLLATE "POSIX" USING f1::text || f2;CODE
HIGHtest/t/replication_test.py955 COLLATE "POSIX" USING f1::text || f2;CODE
HIGHtest/t/s3_unlogged_test.py120 CREATE INDEX ind_1 ON o_test_1 ((a || b));CODE
HIGHtest/t/s3_unlogged_test.py130 CREATE INDEX ind_2 on o_test_3 ((a || b));CODE
HIGHtest/t/pg_dump_restore_test.py40 SELECT i, '*' || i || repeat('*', mod(i, 5)) FROM generate_series(1, 10) AS i;CODE
HIGHtest/t/pg_dump_restore_test.py55 key | integer | (null) | false | falseCODE
HIGHtest/t/pg_dump_restore_test.py57 hash | integer | (null) | true | falseCODE
HIGHtest/t/pg_dump_restore_test.py98 SELECT i, '*' || i || repeat('*', mod(i, 5)) FROM generate_series(1, 10) AS i;CODE
HIGHtest/t/pg_dump_restore_test.py113 key | integer | (null) | false | falseCODE
HIGHtest/t/pg_dump_restore_test.py115 hash | integer | (null) | true | falseCODE
HIGHtest/t/pg_dump_restore_test.py143 SELECT i, '*' || i || repeat('*', mod(i, 5)) FROM generate_series(1, 10) AS i;CODE
HIGHtest/t/pg_dump_restore_test.py158 key | integer | (null) | false | falseCODE
HIGHtest/t/pg_dump_restore_test.py160 hash | integer | (null) | true | falseCODE
HIGHci/pgbench.py205 " value1 float8 not null,\n" +CODE
HIGHci/pgbench.py206 " value2 float8 not null,\n" +CODE
HIGHci/pgbench.py207 " value3 float8 not null,\n" +CODE
HIGHci/pgbench.py208 " value4 float8 not null,\n" +CODE
HIGHci/pgbench.py220 " value1 float8 not null,\n" +CODE
HIGHci/pgbench.py221 " value2 float8 not null,\n" +CODE
HIGHci/pgbench.py222 " value3 float8 not null,\n" +CODE
HIGHci/pgbench.py223 " value4 float8 not null,\n" +CODE
HIGHci/pgbench.py358 '{{"reason": 0, "eventID": null}}', NULL, :emitter, :root_player_id, 'game');CODE
Over-Commented Block141 hits · 134 pts
SeverityFileLineSnippetContext
LOWtest/integration/walg_test.py521 # CleanupCOMMENT
LOWtest/t/base_test.py741 "SELECT pid FROM pg_stat_activity WHERE backend_type = 'orioledb background writer';"COMMENT
LOWtest/t/incomplete_split_test.py481COMMENT
LOWtest/t/rewind_time_test.py181## Tests disabled for not to strain CI as they are much similar to neighbouringCOMMENT
LOWtest/t/rewind_time_test.py201# node.safe_psql(COMMENT
LOWtest/t/rewind_time_test.py221# "INSERT INTO o_test_heap VALUES (%d, %d || 'val'); SAVEPOINT sp3;\n"COMMENT
LOWtest/t/rewind_time_test.py241# node.append_conf(COMMENT
LOWtest/t/rewind_time_test.py261# ") USING heap;\n")COMMENT
LOWtest/t/rewind_time_test.py281# 'postgres', "INSERT INTO o_test_heap\n"COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1081# node = self.nodeCOMMENT
LOWtest/t/rewind_xid_evict_large_test.py1101# " val text,\n"COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1121# for i in range(2500, 2506):COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1141# (i, i))COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1161# len = int(a)COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1181# node.execute(COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1201# node.start()COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1221# 'postgres', "INSERT INTO o_test_heap\n"COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1241# 'postgres', "INSERT INTO o_test\n"COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1261# node.safe_psql('postgres',COMMENT
LOWtest/t/rewind_xid_evict_large_test.py1281# xidc = int(a)COMMENT
LOWtest/t/replication_test.py1101 def test_recreate_o_table_version_replication(self):COMMENT
LOWtest/t/replication_test.py2021 # oProcData[].vxids[] and writes X.oxid to theCOMMENT
LOWtest/t/replication_test.py2441 t_stop.execute("ROLLBACK;")COMMENT
LOWtest/t/replication_test.py2841 # (6) Roll back the txn. wal_rollback writes+flushes theCOMMENT
LOWtest/t/functions_test.py101 node.stop()COMMENT
LOWtest/t/amcheck_test.py321 f.write(struct.pack('<Q', 0xDEADBEEF))COMMENT
LOWci/check_output.sh101 if [[ $corefile == *_3.core ]]; thenCOMMENT
LOWci/filter_regression_diff.py1#!/usr/bin/env python3COMMENT
LOWci/filter_regression_diff.py81 # insert specific errorCOMMENT
LOWci/filter_regression_diff.py121 # generated_stored and generated_virtual run in the same parallelCOMMENT
LOWci/filter_regression_diff.py141 # SET ROLE / GRANT ("does not exist"), or DROP USER ("cannot beCOMMENT
LOWci/filter_regression_diff.py1001 # tests RETURNING-flavoured EXPLAIN; the actual returnedCOMMENT
LOWci/pg_upgrade.sh1#!/bin/bashCOMMENT
LOWci/pg_upgrade.sh201 -j "$(nproc)" || \COMMENT
LOWci/pg_upgrade.sh261# 2c. Strip references to test-only loadable libraries from theCOMMENT
LOWci/pg_upgrade.sh321#COMMENT
LOWci/pg_upgrade.sh341 fiCOMMENT
LOWci/pg_upgrade.sh381# orioledb_data/ tree (plus undo logs in orioledb_undo/), whichCOMMENT
LOWci/pg_upgrade.sh521# 2. INSERT into the expression-index table, then crash (-m immediate)COMMENT
LOWci/pg_upgrade.sh561 # Probe the SQL-function index rebuilt by recovery via the proc cache.COMMENT
LOWinclude/orioledb.h21#include "common/int.h"COMMENT
LOWinclude/orioledb.h321#define vacuum_is_relation_owner vacuum_is_permitted_for_relationCOMMENT
LOWinclude/orioledb.h421COMMENT
LOWinclude/tuple/format.h61COMMENT
LOWinclude/catalog/o_sys_cache.h21 * IDENTIFICATIONCOMMENT
LOWinclude/catalog/sys_trees.h21COMMENT
LOWinclude/utils/antithesis.h41#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"COMMENT
LOWinclude/utils/page_pool.h21 * ucm may not work correctly with lesser page pool sizeCOMMENT
LOWinclude/btree/page_state.h21#define PAGE_STATE_LOCKED_FLAG UINT64CONST(0x0000000000040000)COMMENT
LOWinclude/btree/find.h101 bool parentImgDeferred;COMMENT
LOWinclude/btree/page_contents.h281 deleted:2,COMMENT
LOWinclude/btree/page_contents.h301#define MAKE_ON_DISK_DOWNLINK(extent) (((uint64)((extent).len) << 48) | (uint64)((extent).off) | DOWNLINK_DISK_BIT)COMMENT
LOWinclude/tableam/key_range.h21#define O_VALUE_BOUND_INCLUSIVE 0x01COMMENT
LOWinclude/lib/o_radixtree.h181#elseCOMMENT
LOWinclude/lib/o_radixtree.h201#define RT_FIND RT_MAKE_NAME(find)COMMENT
LOWinclude/lib/o_radixtree.h221/* internal helper functions (no externally visible prototypes) */COMMENT
LOWinclude/lib/o_radixtree.h241#define RT_COPY_ARRAYS_AND_DELETE RT_MAKE_NAME(copy_arrays_and_delete)COMMENT
LOWinclude/lib/o_radixtree.h261#define RT_REMOVE_CHILD_256 RT_MAKE_NAME(remove_child_256)COMMENT
LOWinclude/lib/o_radixtree.h661 * classes increment by 8 (as of PG17 up to 64 bytes), so we just hardCOMMENT
LOWinclude/lib/o_radixtree.h3041/* undefine external parameters, so next radix tree can be defined */COMMENT
81 more matches not shown…
Unused Imports84 hits · 79 pts
SeverityFileLineSnippetContext
LOWtest/t/incomplete_split_test.py4CODE
LOWtest/t/incomplete_split_test.py5CODE
LOWtest/t/incomplete_split_test.py13CODE
LOWtest/t/incomplete_split_test.py14CODE
LOWtest/t/merge_test.py4CODE
LOWtest/t/merge_test.py5CODE
LOWtest/t/merge_test.py6CODE
LOWtest/t/merge_test.py8CODE
LOWtest/t/merge_test.py9CODE
LOWtest/t/rewind_time_test.py4CODE
LOWtest/t/rewind_time_test.py5CODE
LOWtest/t/rewind_time_test.py7CODE
LOWtest/t/rewind_time_test.py8CODE
LOWtest/t/rewind_time_test.py11CODE
LOWtest/t/rewind_time_test.py12CODE
LOWtest/t/rewind_time_test.py14CODE
LOWtest/t/rewind_time_test.py15CODE
LOWtest/t/move_database_test.py5CODE
LOWtest/t/move_database_test.py11CODE
LOWtest/t/recovery_opclass_test.py4CODE
LOWtest/t/schema_test.py1CODE
LOWtest/t/checkpoint_eviction_test.py10CODE
LOWtest/t/checkpoint_eviction_test.py11CODE
LOWtest/t/page_fit_items_test.py4CODE
LOWtest/t/page_fit_items_test.py5CODE
LOWtest/t/page_fit_items_test.py18CODE
LOWtest/t/temp_local_pool_test.py4CODE
LOWtest/t/eviction_test.py4CODE
LOWtest/t/o_tables_test.py4CODE
LOWtest/t/o_tables_test.py5CODE
LOWtest/t/o_tables_test.py8CODE
LOWtest/t/o_tables_test.py10CODE
LOWtest/t/rewind_xid_evict_large_test.py4CODE
LOWtest/t/rewind_xid_evict_large_test.py5CODE
LOWtest/t/rewind_xid_evict_large_test.py7CODE
LOWtest/t/rewind_xid_evict_large_test.py8CODE
LOWtest/t/rewind_xid_evict_large_test.py12CODE
LOWtest/t/rewind_xid_evict_large_test.py13CODE
LOWtest/t/rewind_xid_evict_large_test.py14CODE
LOWtest/t/rewind_xid_evict_large_test.py16CODE
LOWtest/t/rewind_xid_evict_large_test.py17CODE
LOWtest/t/logical_test.py11CODE
LOWtest/t/types_test.py4CODE
LOWtest/t/transaction_test.py5CODE
LOWtest/t/checkpointer_test.py4CODE
LOWtest/t/checkpointer_test.py5CODE
LOWtest/t/checkpointer_test.py6CODE
LOWtest/t/checkpointer_test.py13CODE
LOWtest/t/checkpointer_test.py15CODE
LOWtest/t/checkpointer_test.py16CODE
LOWtest/t/checkpoint_concurrent_test.py10CODE
LOWtest/t/recovery_test.py16CODE
LOWtest/t/logical_xid_subxacts_test.py4CODE
LOWtest/t/logical_xid_subxacts_test.py7CODE
LOWtest/t/vacuum_test.py1CODE
LOWtest/t/reindex_test.py2CODE
LOWtest/t/reindex_test.py3CODE
LOWtest/t/functions_test.py6CODE
LOWtest/t/functions_test.py9CODE
LOWtest/t/s3_unlogged_test.py2CODE
24 more matches not shown…
Excessive Try-Catch Wrapping83 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMorioledb_s3_loader.py299 print(f"An error occurred: {e}")STRING
MEDIUMorioledb_s3_loader.py363 print("An error occurred. Stopping all downloads.")STRING
MEDIUMtest/integration/pgbackrest_test.py505def _run_backup():CODE
LOWtest/integration/pgbackrest_test.py508 except Exception as e:CODE
MEDIUMtest/integration/walg_test.py484def _run_backup():CODE
LOWtest/integration/walg_test.py487 except Exception as e:CODE
LOWtest/t/base_test.py409 except Exception:CODE
LOWtest/t/base_test.py690 except Exception as e:CODE
LOWtest/t/base_test.py795 except Exception as e:CODE
MEDIUMtest/t/base_test.py673def run(self):CODE
LOWtest/t/eviction_bgwriter_test.py84 except Exception:CODE
MEDIUMtest/t/eviction_bgwriter_test.py79def get_bgwriters():CODE
LOWtest/t/incomplete_split_test.py440 except Exception:STRING
MEDIUMtest/t/incomplete_split_test.py434def failedInsertToSplitTable(self, con, insert_from, insert_to, step):CODE
LOWtest/t/merge_test.py389 except Exception as e:CODE
LOWtest/t/move_database_test.py31 except Exception as e:CODE
LOWtest/t/file_operations_test.py36 except Exception as e:CODE
LOWtest/t/file_operations_test.py51 except Exception:CODE
LOWtest/t/file_operations_test.py105 except Exception:STRING
MEDIUMtest/t/page_fit_items_test.py103def recreate_node(self):CODE
LOWtest/t/page_fit_items_test.py107 except Exception:CODE
LOWtest/t/temp_local_pool_test.py412 except Exception:STRING
LOWtest/t/temp_local_pool_test.py466 except Exception:STRING
LOWtest/t/transaction_test.py72 except Exception:STRING
LOWtest/t/transaction_test.py163 except Exception:STRING
LOWtest/t/transaction_test.py236 except Exception:STRING
LOWtest/t/transaction_test.py240 except Exception:STRING
LOWtest/t/transaction_test.py341 except Exception:STRING
LOWtest/t/transaction_test.py345 except Exception:STRING
LOWtest/t/recovery_test.py2432 except Exception:STRING
LOWtest/t/recovery_test.py2435 except Exception:STRING
LOWtest/t/recovery_test.py2448 except Exception:STRING
LOWtest/t/recovery_test.py2454 except Exception:STRING
LOWtest/t/fuzzy_checkpoint_test.py79 except Exception as e: # noqa: BLE001CODE
LOWtest/t/fuzzy_checkpoint_test.py163 except Exception as e: # noqa: BLE001CODE
LOWtest/t/fuzzy_checkpoint_test.py297 except Exception as e: # noqa: BLE001CODE
LOWtest/t/fuzzy_checkpoint_test.py422 except Exception as e: # noqa: BLE001CODE
MEDIUMtest/t/fuzzy_checkpoint_test.py76def _do_drop():CODE
MEDIUMtest/t/fuzzy_checkpoint_test.py160def _do_ckpt():CODE
MEDIUMtest/t/fuzzy_checkpoint_test.py294def _do_ckpt():CODE
MEDIUMtest/t/fuzzy_checkpoint_test.py419def _do_ckpt():CODE
LOWtest/t/replication_test.py1185 except Exception as e:CODE
LOWtest/t/replication_test.py2501 except Exception:STRING
LOWtest/t/replication_test.py2505 except Exception:STRING
LOWtest/t/replication_test.py2509 except Exception:STRING
LOWtest/t/replication_test.py2948 except Exception:STRING
LOWtest/t/replication_test.py2953 except Exception:STRING
LOWtest/t/replication_test.py2959 except Exception:STRING
LOWtest/t/replication_test.py2974 except Exception:STRING
LOWtest/t/replication_test.py2976 except Exception:STRING
LOWtest/t/replication_test.py2980 except Exception:STRING
LOWtest/t/replication_test.py2985 except Exception:STRING
LOWtest/t/replication_test.py2990 except Exception:STRING
LOWtest/t/replication_test.py2994 except Exception:STRING
LOWtest/t/replication_test.py1239 except Exception:STRING
LOWtest/t/replication_test.py1712 except Exception:STRING
LOWtest/t/replication_test.py1750 except Exception:STRING
LOWtest/t/replication_test.py1863 except Exception:STRING
LOWtest/t/replication_test.py1931 except Exception:STRING
LOWtest/t/replication_test.py2089 except Exception:STRING
23 more matches not shown…
Deep Nesting45 hits · 42 pts
SeverityFileLineSnippetContext
LOWorioledb_s3_loader.py163CODE
LOWorioledb_s3_loader.py257CODE
LOWorioledb_s3_loader.py406CODE
LOWtypedefs_gen.py41CODE
LOWtest/t/indices_build_test.py418CODE
LOWtest/t/indices_build_test.py657CODE
LOWtest/t/page_fit_items_test.py119CODE
LOWtest/t/s3_base_test.py92CODE
LOWtest/t/logical_test.py622CODE
LOWtest/t/logical_test.py709CODE
LOWtest/t/logical_test.py1750CODE
LOWtest/t/logical_test.py1856CODE
LOWtest/t/logical_test.py2063CODE
LOWtest/t/logical_test.py2147CODE
LOWtest/t/logical_test.py2421CODE
LOWtest/t/logical_test.py2565CODE
LOWtest/t/checkpointer_test.py102CODE
LOWtest/t/checkpoint_concurrent_test.py719CODE
LOWtest/t/recovery_test.py2361CODE
LOWtest/t/recovery_test.py2404CODE
LOWtest/t/replication_test.py364CODE
LOWtest/t/replication_test.py450CODE
LOWtest/t/replication_test.py822CODE
LOWtest/t/replication_test.py865CODE
LOWtest/t/replication_test.py1566CODE
LOWtest/t/replication_test.py1762CODE
LOWtest/t/replication_test.py2512CODE
LOWtest/t/replication_test.py2712CODE
LOWtest/t/files_test.py163CODE
LOWtest/t/files_test.py760CODE
LOWtest/t/checkpoint_split_base_test.py11CODE
LOWtest/t/s3_test.py97CODE
LOWtest/t/amcheck_test.py231CODE
LOWtest/t/unlogged_test.py64CODE
LOWci/filter_isolation_diff.py64CODE
LOWci/filter_regression_diff.py173CODE
LOWci/filter_regression_diff.py187CODE
LOWci/filter_regression_diff.py362CODE
LOWci/filter_regression_diff.py724CODE
LOWci/filter_regression_diff.py741CODE
LOWci/dump_stuck_pages.py128CODE
LOWci/pgbench.py466CODE
LOWci/pgbench.py562CODE
LOWci/pgbench.py803CODE
LOWperf/undo_page_modes_perf.py243CODE
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtest/t/checkpoint_eviction_test.py0create extension if not exists orioledb; create table if not exists o_test ( key serial not null, val int not null, primSTRING
HIGHtest/t/eviction_test.py0create extension if not exists orioledb; create table if not exists o_test ( key serial not null, val int not null, primSTRING
HIGHtest/t/files_test.py0create extension if not exists orioledb; create table if not exists o_test ( key serial not null, val int not null, primSTRING
HIGHtest/t/s3_inherits_test.py0orioledb.s3_mode = true orioledb.s3_host = '{self.host}:{self.port}/{self.bucket_name}' orioledb.s3_region = '{self.regiSTRING
HIGHtest/t/s3_unlogged_test.py0orioledb.s3_mode = true orioledb.s3_host = '{self.host}:{self.port}/{self.bucket_name}' orioledb.s3_region = '{self.regiSTRING
HIGHtest/t/s3_test.py0orioledb.s3_mode = true orioledb.s3_host = '{self.host}:{self.port}/{self.bucket_name}' orioledb.s3_region = '{self.regiSTRING
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWcheck_patchset_version.py31 # Check if provided version is numeric (not a hash)COMMENT
LOWcheck_patchset_version.py34 # Check if provided version is part of `git describe --tags`COMMENT
LOWtest/t/eviction_test.py715 # Check if "not loaded" appears anywhere in the outputSTRING
LOWci/docker_matrix.sh234 # Check if the script is run from the correct directoryCOMMENT
LOWci/docker_matrix.sh237 # Check if Docker is installedCOMMENT
LOWci/filter_regression_diff.py340# Check if two condition strings are equal up to commutativity of operandsCOMMENT
LOWci/local_docker_matrix.sh41# Check if the directory exists and contains a git repositoryCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtest/t/base_test.py445 # Flush just the test-harness-written config files to the blockCOMMENT
MEDIUMtest/t/fuzzy_checkpoint_test.py412 # the DDL we are holding parked -- a test-harness artifact, notCOMMENT
MEDIUMci/check_output.sh22# fresh residuals to print even if the test harness only kept theCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocker/init/docker-entrypoint.sh47 # Create the transaction log directory before initdb is run so the directory is owned by the correct userCOMMENT
MEDIUMtest/t/base_test.py115 # Create the log-writes DM target.COMMENT
Modern AI Meta-Vocabulary1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMci/pg_upgrade.sh269# --check aborts. They are pure PG-core test scaffolding, unrelatedCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtest/t/rewrite_test.py5 # TODO: Add test with ALTER/ADD COLUMN that rewrites during recovery or replicationCOMMENT
LOWtest/t/rewrite_test.py6 # TODO: Add test with ALTER/ADD COLUMN that rewrites toast treeCOMMENT
Verbosity Indicators6 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/t/replication_test.py1385 # Step 2: insert batch 2 after checkpointSTRING
LOWtest/t/replication_test.py1392 # Step 3: rebuild primary keySTRING
LOWtest/t/replication_test.py1429 # Step 5: crash replica without checkpointSTRING
LOWtest/t/replication_test.py1434 # Step 6: verify all data after recoverySTRING
LOWtest/t/replication_test.py1358 # Step 1: checkpoint on both sidesSTRING
LOWtest/t/replication_test.py1403 # Step 4: replica catches up, then crashSTRING
Structural Annotation Overuse6 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/t/replication_test.py1385 # Step 2: insert batch 2 after checkpointSTRING
LOWtest/t/replication_test.py1392 # Step 3: rebuild primary keySTRING
LOWtest/t/replication_test.py1429 # Step 5: crash replica without checkpointSTRING
LOWtest/t/replication_test.py1434 # Step 6: verify all data after recoverySTRING
LOWtest/t/replication_test.py1358 # Step 1: checkpoint on both sidesSTRING
LOWtest/t/replication_test.py1403 # Step 4: replica catches up, then crashSTRING
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWorioledb_s3_loader.py334CODE