{#if selectedProfile && sessionAggs.length < 5}
need at least 5 unique digraph pairs to compare
{/if}
{#if profiles.length === 0}
save a profile first on the profile tab
{/if}
{#if result}
{result.similarityPercent}%similarity
distance{result.overallDistance}
shared pairs{result.sharedCount}
confidence{result.confidence}
{#if result.confidence === 'insufficient'}
not enough shared digraph pairs for a reliable comparison — type more or use similar content
{/if}
note: comparing prose vs code sessions for the same user will produce poor matches
{#if result.perDigraph.length > 0}