Repository Analysis

pgvector/pgvector

Open-source vector similarity search for Postgres

1.8 Likely human-written View on GitHub
1.8
Adjusted Score
1.8
Raw Score
100%
Time Factor
2026-05-26
Last Push
21,525
Stars
C
Language
22,157
Lines of Code
129
Files
40
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 40

Pattern Findings

40 matches across 1 category. Click a row to expand file-level details.

Over-Commented Block40 hits · 40 pts
SeverityFileLineSnippet
LOWsrc/ivfbuild.c1#include "postgres.h"
LOWsrc/ivfbuild.c21#include "miscadmin.h"
LOWsrc/ivfscan.c1#include "postgres.h"
LOWsrc/halfvec.c1#include "postgres.h"
LOWsrc/hnswutils.c1#include "postgres.h"
LOWsrc/hnswutils.c61#define SH_HASH_KEY(tb, key) hash_tid(key)
LOWsrc/hnswutils.c81#define SH_KEY ptr
LOWsrc/hnswbuild.c41#include "access/genam.h"
LOWsrc/hnswbuild.c61#include "utils/rel.h"
LOWsrc/hnswvacuum.c1#include "postgres.h"
LOWsrc/bitutils.c1#include "postgres.h"
LOWsrc/bitutils.c21#define TARGET_AVX512_POPCOUNT
LOWsrc/bitutils.c161#define CPU_FEATURE_OSXSAVE (1 << 27) /* F1 ECX */
LOWsrc/ivfutils.c1#include "postgres.h"
LOWsrc/vector.c1#include "postgres.h"
LOWsrc/vector.c21#include "utils/lsyscache.h"
LOWsrc/ivfflat.c1#include "postgres.h"
LOWsrc/ivfinsert.c1#include "postgres.h"
LOWsrc/halfutils.c1#include "postgres.h"
LOWsrc/halfutils.c241
LOWsrc/hnsw.h1#ifndef HNSW_H
LOWsrc/hnsw.h21#if PG_VERSION_NUM >= 190000
LOWsrc/hnsw.h41/* Must correspond to page numbers since page lock is used */
LOWsrc/hnsw.h61#define HNSW_HEAPTIDS 10
LOWsrc/hnsw.h81#if PG_VERSION_NUM >= 150000
LOWsrc/hnsw.h101#define HnswGetSearchCandidate(membername, ptr) pairingheap_container(HnswSearchCandidate, membername, ptr)
LOWsrc/hnsw.h501#define SH_PREFIX pointerhash
LOWsrc/halfvec.h1#ifndef HALFVEC_H
LOWsrc/halfvec.h21/* target_clones requires glibc */
LOWsrc/halfvec.h41#elif defined(__FLT16_MAX__) && !defined(HALFVEC_DISPATCH) && !defined(__FreeBSD__) && (!defined(__i386__) || defined(__
LOWsrc/hnswscan.c1#include "postgres.h"
LOWsrc/ivfkmeans.c1#include "postgres.h"
LOWsrc/ivfvacuum.c1#include "postgres.h"
LOWsrc/hnswinsert.c1#include "postgres.h"
LOWsrc/ivfflat.h1#ifndef IVFFLAT_H
LOWsrc/ivfflat.h21#if PG_VERSION_NUM >= 150000
LOWsrc/ivfflat.h41
LOWsrc/vector.h21int vector_cmp_internal(Vector * a, Vector * b);
LOWsrc/sparsevec.c1#include "postgres.h"
LOWsrc/hnsw.c1#include "postgres.h"