Repository Analysis

crystaldba/postgres-mcp

Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

32.0 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of crystaldba/postgres-mcp, a Python project with 3,235 GitHub stars. SynthScan v2.0 examined 14,935 lines of code across 56 source files, recording 398 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 32.0 places this repository in the Strong 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).

32.0
Adjusted Score
32.0
Raw Score
100%
Time Factor
2026-08-17
Last Push
3.2K
Stars
Python
Language
14.9K
Lines of Code
56
Files
398
Pattern Hits
2026-08-29
Scan Date
0.00
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 0MEDIUM 44LOW 354

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

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

Hyper-Verbose Identifiers163 hits · 154 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py21def test_postgres_connection_string(request) -> Generator[tuple[str, str], None, None]:CODE
LOWtests/utils.py15def create_postgres_container(version: str) -> Generator[Tuple[str, str], None, None]:CODE
LOWtests/unit/test_transport.py10async def test_transport_argument_parsing(transport):CODE
LOWtests/unit/test_transport.py48async def test_streamable_http_host_port_arguments():CODE
LOWtests/unit/test_transport.py77async def test_sse_host_port_arguments():CODE
LOWtests/unit/test_transport.py106async def test_default_transport_is_stdio():CODE
LOWtests/unit/test_access_mode.py31async def test_get_sql_driver_returns_correct_driver(access_mode, expected_driver_type, mock_db_connection):CODE
LOWtests/unit/test_access_mode.py47async def test_get_sql_driver_sets_timeout_in_restricted_mode(mock_db_connection):CODE
LOWtests/unit/test_access_mode.py60async def test_get_sql_driver_in_unrestricted_mode_no_timeout(mock_db_connection):CODE
LOWtests/unit/test_access_mode.py72async def test_command_line_parsing():CODE
LOWtests/unit/top_queries/test_top_queries_calc.py99def mock_extension_not_installed():CODE
LOWtests/unit/top_queries/test_top_queries_calc.py185async def test_extension_not_installed(mock_pg13_driver, mock_extension_not_installed):CODE
LOWtests/unit/explain/test_server_integration.py35async def test_explain_query_integration():CODE
LOWtests/unit/explain/test_server_integration.py57async def test_explain_query_with_analyze_integration():CODE
LOWtests/unit/explain/test_server_integration.py79async def test_explain_query_with_hypothetical_indexes_integration():CODE
LOWtests/unit/explain/test_server_integration.py110async def test_explain_query_missing_hypopg_integration():CODE
LOWtests/unit/explain/test_server_integration.py141async def test_explain_query_error_handling_integration():CODE
LOWtests/unit/explain/test_server.py27async def test_server_tools_registered():CODE
LOWtests/unit/explain/test_server.py58async def test_explain_query_analyze():CODE
LOWtests/unit/explain/test_server.py86async def test_explain_query_hypothetical_indexes():CODE
LOWtests/unit/explain/test_server.py116async def test_explain_query_error_handling():CODE
LOWtests/unit/explain/test_explain_plan.py27async def test_explain_plan_tool_initialization(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan.py48async def test_has_like_expressions():CODE
LOWtests/unit/explain/test_explain_plan.py93async def test_explain_with_bind_variables(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan.py203async def test_explain_analyze_with_bind_variables(mock_sql_driver, monkeypatch):CODE
LOWtests/unit/explain/test_explain_plan.py258async def test_explain_analyze_success(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan.py307async def test_explain_with_invalid_response(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan.py323async def test_explain_with_empty_result(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan.py337async def test_explain_with_empty_plan_data(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan.py418async def test_explain_with_functional_hypothetical_indexes(mock_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan_real_db.py109async def test_explain_with_real_db(local_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan_real_db.py136async def test_explain_analyze_with_real_db(local_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan_real_db.py162async def test_explain_join_query_with_real_db(local_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan_real_db.py190async def test_explain_with_bind_variables_real_db(local_sql_driver):STRING
LOWtests/unit/explain/test_explain_plan_real_db.py209async def test_explain_with_like_expressions_real_db(local_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan_real_db.py231async def test_explain_with_like_and_bind_variables_real_db(local_sql_driver):CODE
LOWtests/unit/explain/test_explain_plan_real_db.py250async def test_explain_invalid_query_with_real_db(local_sql_driver):CODE
LOWtests/unit/index/test_dta_calc.py44async def test_extract_columns_empty_query(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py52async def test_extract_columns_invalid_sql(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py60async def test_extract_columns_subquery(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py68async def test_index_initialization():CODE
LOWtests/unit/index/test_dta_calc.py94async def test_extract_columns_from_simple_query(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py103async def test_extract_columns_from_join_query(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py370async def test_filter_long_text_columns(async_sql_driver, create_dta):CODE
LOWtests/unit/index/test_dta_calc.py462async def test_basic_workload_analysis(async_sql_driver):CODE
LOWtests/unit/index/test_dta_calc.py584async def test_replace_parameters_basic(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py608async def test_replace_parameters_numeric(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py636async def test_replace_parameters_date(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py657async def test_replace_parameters_like(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py678async def test_replace_parameters_multiple(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py691 def identify_column_side_effect(context, table_columns: Dict[str, Set[str]]):CODE
LOWtests/unit/index/test_dta_calc.py775async def test_identify_parameter_column(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py810async def test_get_replacement_value(create_dta):CODE
LOWtests/unit/index/test_dta_calc.py848async def test_condition_column_collector_simple(async_sql_driver):CODE
LOWtests/unit/index/test_dta_calc.py865async def test_condition_column_collector_join(async_sql_driver):CODE
LOWtests/unit/index/test_dta_calc.py1008async def test_extract_condition_columns(async_sql_driver):CODE
LOWtests/unit/index/test_dta_calc.py736async def test_replace_parameters_fallback(create_dta):STRING
LOWtests/unit/index/test_dta_calc.py893async def test_condition_column_collector_with_alias(async_sql_driver):STRING
LOWtests/unit/index/test_dta_calc.py929async def test_complex_query_with_alias_in_conditions(async_sql_driver):STRING
LOWtests/unit/index/test_dta_calc.py972async def test_filter_candidates_by_query_conditions(async_sql_driver, create_dta):STRING
103 more matches not shown…
Self-Referential Comments40 hits · 121 pts
SeverityFileLineSnippetContext
MEDIUMdocker-entrypoint.sh36# Create a new array for the processed argumentsCOMMENT
MEDIUMtests/conftest.py13# Define a custom event loop policy that handles cleanup betterCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py115 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py133 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py151 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py169 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py187 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py207 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py220 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/top_queries/test_top_queries_calc.py240 # Create the TopQueriesCalc instance with the mock driverCOMMENT
MEDIUMtests/unit/explain/test_server.py118 # Create a mock error responseCOMMENT
MEDIUMtests/unit/index/test_dta_calc.py1195 # Create a before plan with sequential scanCOMMENT
MEDIUMtests/unit/index/test_dta_calc.py1219 # Create an after plan with index scan insteadCOMMENT
MEDIUMtests/unit/database_health/test_database_health_tool.py85 # Create a duplicate index to test duplicate index detectionCOMMENT
MEDIUMtests/unit/sql/test_db_conn_pool.py67 # Create a mock implementation of pool_connect that simulates a retryCOMMENT
MEDIUMtests/unit/sql/test_sql_driver.py52 # Create the poolCOMMENT
MEDIUMtests/unit/sql/test_sql_driver.py100 # Create a mock implementation of _execute_with_connectionCOMMENT
MEDIUMtests/unit/sql/test_sql_driver.py151 # Create a mock implementation of _execute_with_connectionCOMMENT
MEDIUMtests/unit/sql/test_sql_driver.py227 # Create a mock implementation of _execute_with_connectionCOMMENT
MEDIUMtests/unit/sql/test_sql_driver.py268 # Create a mock implementation of _execute_with_connectionCOMMENT
MEDIUMtests/unit/sql/test_sql_driver.py308 # Create a mock execute functionCOMMENT
MEDIUMtests/unit/sql/test_readonly_enforcement.py24 # Create a mock for the base SqlDriver._execute_with_connectionCOMMENT
MEDIUMtests/integration/test_top_queries_integration.py121 # Create the TopQueriesCalc instanceCOMMENT
MEDIUMtests/integration/test_top_queries_integration.py153 # Create the TopQueriesCalc instanceCOMMENT
MEDIUMtests/integration/dta/test_dta_calc_integration.py1085 # Create a simple test tableCOMMENT
MEDIUMtests/integration/dta/test_dta_calc_integration.py1176 # Create a test table with columns of varying sizesCOMMENT
MEDIUMtests/integration/dta/test_dta_calc_integration.py1314 # Create a test table with characteristics that demonstrate Pareto optimalityCOMMENT
MEDIUMtests/integration/dta/test_dta_calc_integration.py1348 # Create a workload with specific benefit profilesCOMMENT
MEDIUMtests/integration/dta/test_dta_calc_integration.py821 # Create the recommended indexesSTRING
MEDIUMtests/integration/dta/test_dta_calc_integration.py480 # Create the recommended indexesSTRING
MEDIUMsrc/postgres_mcp/artifacts.py209 # Create a PlanNode from the raw JSON dataCOMMENT
MEDIUMsrc/postgres_mcp/explain/explain_plan.py204 # Create the indexes queryCOMMENT
MEDIUMsrc/postgres_mcp/index/dta_calc.py403 # Create a list of table names for the queryCOMMENT
MEDIUMsrc/postgres_mcp/index/index_opt_base.py505 # Create a hashable key for the cacheCOMMENT
MEDIUMsrc/postgres_mcp/index/index_opt_base.py243 # Create a synthetic workload entry for each queryCOMMENT
MEDIUMsrc/postgres_mcp/index/index_opt_base.py375 # Create a cache key from the query and indexesCOMMENT
MEDIUMsrc/postgres_mcp/index/presentation.py155 # Create the result JSON object with summary, recommendations, and query impactCOMMENT
MEDIUMsrc/postgres_mcp/index/llm_opt.py270 # Create a hypothetical index using hypopgCOMMENT
MEDIUMsrc/postgres_mcp/index/llm_opt.py345 # Create a new Index object with the columnsCOMMENT
MEDIUMsrc/postgres_mcp/sql/bind_params.py554 # Create a cache key from table and column nameCOMMENT
Excessive Try-Catch Wrapping78 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/utils.py57 except Exception as e:CODE
LOWtests/utils.py118 except Exception as e:CODE
LOWtests/utils.py139 except Exception as e:CODE
LOWtests/utils.py145 except Exception:CODE
LOWtests/utils.py154 except Exception as e:CODE
LOWtests/unit/test_access_mode.py105 except Exception:CODE
LOWtests/integration/test_top_queries_integration.py42 except Exception as e:CODE
LOWtests/integration/test_top_queries_integration.py94 except Exception as e:STRING
LOWtests/integration/test_top_queries_integration.py104 except Exception as e:CODE
LOWtests/integration/dta/test_dta_calc_integration.py1166 except Exception as e:CODE
LOWtests/integration/dta/test_dta_calc_integration.py58 except Exception as e:CODE
LOWtests/integration/dta/test_dta_calc_integration.py65 except Exception as e:CODE
LOWtests/integration/dta/test_dta_calc_integration.py818 except Exception as e:STRING
LOWtests/integration/dta/test_dta_calc_integration.py828 except Exception as e:STRING
LOWtests/integration/dta/test_dta_calc_integration.py1074 except Exception as e:STRING
LOWtests/integration/dta/test_dta_calc_integration.py546 except Exception as e:STRING
LOWtests/integration/dta/test_dta_calc_integration.py731 except Exception as e:STRING
LOWtests/integration/dta/test_dta_calc_integration.py840 except Exception as e:STRING
LOWtests/integration/dta/test_dta_calc_integration.py850 except Exception as e:STRING
LOWsrc/postgres_mcp/server.py111 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py185 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py324 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py387 except Exception:CODE
LOWsrc/postgres_mcp/server.py393 except Exception:CODE
LOWsrc/postgres_mcp/server.py399 except Exception:CODE
LOWsrc/postgres_mcp/server.py409 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py425 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py452 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py485 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py552 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py640 except Exception as e:CODE
LOWsrc/postgres_mcp/server.py690 except Exception as e:CODE
LOWsrc/postgres_mcp/artifacts.py220 except Exception as e:CODE
LOWsrc/postgres_mcp/artifacts.py322 except Exception as e:CODE
LOWsrc/postgres_mcp/top_queries/top_queries_calc.py152 except Exception as e:STRING
LOWsrc/postgres_mcp/top_queries/top_queries_calc.py247 except Exception as e:STRING
LOWsrc/postgres_mcp/explain/explain_plan.py112 except Exception as e:CODE
LOWsrc/postgres_mcp/explain/explain_plan.py138 except Exception as e:CODE
LOWsrc/postgres_mcp/explain/explain_plan.py141 except Exception as e:CODE
LOWsrc/postgres_mcp/explain/explain_plan.py180 except Exception as e:CODE
LOWsrc/postgres_mcp/explain/explain_plan.py182 except Exception as e:CODE
LOWsrc/postgres_mcp/explain/explain_plan.py236 except Exception as e:CODE
MEDIUMsrc/postgres_mcp/index/dta_calc.py511def in existing_defs:CODE
LOWsrc/postgres_mcp/index/dta_calc.py367 except Exception as e:CODE
LOWsrc/postgres_mcp/index/dta_calc.py577 except Exception as e:CODE
LOWsrc/postgres_mcp/index/dta_calc.py624 except Exception as e:CODE
LOWsrc/postgres_mcp/index/dta_calc.py527 except Exception as e:STRING
LOWsrc/postgres_mcp/index/dta_calc.py531 except Exception as e:STRING
LOWsrc/postgres_mcp/index/index_opt_base.py500 except Exception as e:CODE
LOWsrc/postgres_mcp/index/index_opt_base.py287 except Exception as e:CODE
LOWsrc/postgres_mcp/index/index_opt_base.py410 except Exception as e:CODE
LOWsrc/postgres_mcp/index/index_opt_base.py488 except Exception as e:CODE
LOWsrc/postgres_mcp/index/index_opt_base.py646 except Exception as e:CODE
LOWsrc/postgres_mcp/index/index_opt_base.py662 except Exception as e:CODE
LOWsrc/postgres_mcp/index/index_opt_base.py532 except Exception as e:STRING
LOWsrc/postgres_mcp/index/presentation.py168 except Exception as e:CODE
LOWsrc/postgres_mcp/index/llm_opt.py223 except Exception as e:CODE
LOWsrc/postgres_mcp/index/llm_opt.py288 except Exception as e:CODE
LOWsrc/postgres_mcp/index/llm_opt.py382 except Exception as e:STRING
LOWsrc/postgres_mcp/database_health/replication_calc.py110 except Exception:STRING
18 more matches not shown…
Redundant / Tautological Comments26 hits · 39 pts
SeverityFileLineSnippetContext
LOWdocker-entrypoint.sh65# Check if SSE transport is specified and --sse-host is not already setCOMMENT
LOWtests/utils.py36 # Check if custom image already existsCOMMENT
LOWtests/utils.py94 # Check if container is runningCOMMENT
LOWtests/integration/test_top_queries_integration.py34 # Check if extension existsCOMMENT
LOWtests/integration/dta/test_dta_calc_integration.py780 # Check if it matches one of our expected patternsSTRING
LOWtests/integration/dta/test_dta_calc_integration.py784 # Check if recommendation matches at least as a superset of the patternSTRING
LOWtests/integration/dta/test_dta_calc_integration.py875 # Check if we measured performance improvementsSTRING
LOWsrc/postgres_mcp/explain/explain_plan.py125 # Check if the query contains bind variablesCOMMENT
LOWsrc/postgres_mcp/explain/explain_plan.py131 # Check if we got a valid planCOMMENT
LOWsrc/postgres_mcp/index/dta_calc.py377 # Check if all columns in the index are used in conditionsCOMMENT
LOWsrc/postgres_mcp/index/dta_calc.py764 # Check if this is a known aliasCOMMENT
LOWsrc/postgres_mcp/index/dta_calc.py323 # Check if we've exceeded the time limit after doing at least one iterationCOMMENT
LOWsrc/postgres_mcp/index/dta_calc.py566 # Check if uniqueCOMMENT
LOWsrc/postgres_mcp/index/dta_calc.py792 # Check if this is a reference to a column aliasCOMMENT
LOWsrc/postgres_mcp/index/index_opt_base.py508 # Check if we already have a cached resultCOMMENT
LOWsrc/postgres_mcp/index/index_opt_base.py149 # Output resultsCOMMENT
LOWsrc/postgres_mcp/index/index_opt_base.py626 # Check if we have a cached resultCOMMENT
LOWsrc/postgres_mcp/index/llm_opt.py309 # Check if this is an index scan nodeCOMMENT
LOWsrc/postgres_mcp/sql/bind_params.py164 # Check if this is a known aliasCOMMENT
LOWsrc/postgres_mcp/sql/bind_params.py557 # Check if we already have this in cacheCOMMENT
LOWsrc/postgres_mcp/sql/extension_utils.py45 # Check if we have a cached versionCOMMENT
LOWsrc/postgres_mcp/sql/extension_utils.py114 # Check if the extension is installedCOMMENT
LOWsrc/postgres_mcp/sql/extension_utils.py142 # Check if the extension is available but not installedCOMMENT
LOWsrc/postgres_mcp/sql/sql_driver.py162 # Check if this is a connection poolCOMMENT
LOWsrc/postgres_mcp/sql/safe_sql.py880 # Check if node type is allowedCOMMENT
LOWsrc/postgres_mcp/sql/safe_sql.py962 # Check if the inner statement type is allowedCOMMENT
Deep Nesting39 hits · 33 pts
SeverityFileLineSnippetContext
LOWtests/utils.py15CODE
LOWtests/unit/test_transport.py10CODE
LOWtests/unit/index/test_dta_calc.py170CODE
LOWtests/unit/index/test_dta_calc.py171CODE
LOWtests/unit/sql/test_db_conn_pool.py62CODE
LOWtests/integration/dta/test_dta_calc_integration.py170CODE
LOWtests/integration/dta/test_dta_calc_integration.py552CODE
LOWtests/integration/dta/test_dta_calc_integration.py885CODE
LOWtests/integration/dta/test_dta_calc_integration.py1080CODE
LOWsrc/postgres_mcp/server.py123CODE
LOWsrc/postgres_mcp/server.py197CODE
LOWsrc/postgres_mcp/server.py336CODE
LOWsrc/postgres_mcp/explain/explain_plan.py83CODE
LOWsrc/postgres_mcp/index/dta_calc.py125CODE
LOWsrc/postgres_mcp/index/dta_calc.py344CODE
LOWsrc/postgres_mcp/index/dta_calc.py384CODE
LOWsrc/postgres_mcp/index/dta_calc.py490CODE
LOWsrc/postgres_mcp/index/dta_calc.py534CODE
LOWsrc/postgres_mcp/index/dta_calc.py581CODE
LOWsrc/postgres_mcp/index/dta_calc.py671CODE
LOWsrc/postgres_mcp/index/dta_calc.py754CODE
LOWsrc/postgres_mcp/index/dta_calc.py775CODE
LOWsrc/postgres_mcp/index/index_opt_base.py180CODE
LOWsrc/postgres_mcp/index/llm_opt.py74CODE
LOWsrc/postgres_mcp/index/llm_opt.py293CODE
LOWsrc/postgres_mcp/database_health/index_health_calc.py22CODE
LOWsrc/postgres_mcp/sql/bind_params.py75CODE
LOWsrc/postgres_mcp/sql/bind_params.py115CODE
LOWsrc/postgres_mcp/sql/bind_params.py154CODE
LOWsrc/postgres_mcp/sql/bind_params.py175CODE
LOWsrc/postgres_mcp/sql/bind_params.py287CODE
LOWsrc/postgres_mcp/sql/bind_params.py413CODE
LOWsrc/postgres_mcp/sql/bind_params.py529CODE
LOWsrc/postgres_mcp/sql/bind_params.py552CODE
LOWsrc/postgres_mcp/sql/bind_params.py630CODE
LOWsrc/postgres_mcp/sql/extension_utils.py91CODE
LOWsrc/postgres_mcp/sql/sql_driver.py224CODE
LOWsrc/postgres_mcp/sql/safe_sql.py878CODE
LOWsrc/postgres_mcp/sql/safe_sql.py948CODE
Modern Structural Boilerplate23 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/utils.py12logger = logging.getLogger(__name__)CODE
LOWtests/unit/explain/test_explain_plan_real_db.py11logger = logging.getLogger(__name__)CODE
LOWtests/unit/database_health/test_database_health_tool.py8logger = logging.getLogger(__name__)CODE
LOWtests/integration/test_top_queries_integration.py10logger = logging.getLogger(__name__)CODE
LOWtests/integration/dta/test_dta_calc_integration.py14logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/server.py46logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/__init__.py20__all__ = [CODE
LOWsrc/postgres_mcp/top_queries/top_queries_calc.py13logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/top_queries/__init__.py4__all__ = ["PG_STAT_STATEMENTS", "TopQueriesCalc"]CODE
LOWsrc/postgres_mcp/explain/explain_plan.py17logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/explain/__init__.py5__all__ = [CODE
LOWsrc/postgres_mcp/index/dta_calc.py22logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/index/dta_calc.py26logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/index/index_opt_base.py23logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/index/presentation.py18logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/index/llm_opt.py21logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/database_health/database_health.py19logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/database_health/__init__.py4__all__ = ["DatabaseHealthTool", "HealthType"]CODE
LOWsrc/postgres_mcp/sql/bind_params.py21logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/sql/__init__.py17__all__ = [CODE
LOWsrc/postgres_mcp/sql/extension_utils.py10logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/sql/sql_driver.py17logger = logging.getLogger(__name__)CODE
LOWsrc/postgres_mcp/sql/safe_sql.py85logger = logging.getLogger(__name__)CODE
Unused Imports22 hits · 22 pts
SeverityFileLineSnippetContext
LOWsrc/postgres_mcp/__init__.py5CODE
LOWsrc/postgres_mcp/top_queries/__init__.py1CODE
LOWsrc/postgres_mcp/top_queries/__init__.py2CODE
LOWsrc/postgres_mcp/explain/explain_plan.py3CODE
LOWsrc/postgres_mcp/explain/__init__.py3CODE
LOWsrc/postgres_mcp/database_health/database_health.py1CODE
LOWsrc/postgres_mcp/database_health/__init__.py1CODE
LOWsrc/postgres_mcp/database_health/__init__.py2CODE
LOWsrc/postgres_mcp/sql/__init__.py3CODE
LOWsrc/postgres_mcp/sql/__init__.py4CODE
LOWsrc/postgres_mcp/sql/__init__.py5CODE
LOWsrc/postgres_mcp/sql/__init__.py6CODE
LOWsrc/postgres_mcp/sql/__init__.py7CODE
LOWsrc/postgres_mcp/sql/__init__.py8CODE
LOWsrc/postgres_mcp/sql/__init__.py9CODE
LOWsrc/postgres_mcp/sql/__init__.py10CODE
LOWsrc/postgres_mcp/sql/__init__.py11CODE
LOWsrc/postgres_mcp/sql/__init__.py12CODE
LOWsrc/postgres_mcp/sql/__init__.py13CODE
LOWsrc/postgres_mcp/sql/__init__.py14CODE
LOWsrc/postgres_mcp/sql/__init__.py15CODE
LOWsrc/postgres_mcp/sql/safe_sql.py1CODE
AI Slop Vocabulary5 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/index/test_dta_calc.py248 """Test the robust index comparison functionality."""STRING
MEDIUMsrc/postgres_mcp/index/llm_opt.py24# We introduce a Pydantic index class to facilitate communication with the LLMCOMMENT
MEDIUMsrc/postgres_mcp/database_health/replication_calc.py74 """Get comprehensive replication metrics."""STRING
LOWsrc/postgres_mcp/sql/bind_params.py454 # For non-numeric, just use most commonCOMMENT
LOWsrc/postgres_mcp/sql/bind_params.py458 # If adaptation fails, just use the valueCOMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdevenv.yaml21#imports:COMMENT
LOWsrc/postgres_mcp/index/dta_calc.py81COMMENT