Skip to content

Make language ranking deterministic - #31

Open
xaionaro wants to merge 1 commit into
abadojack:masterfrom
xaionaro-go:master
Open

Make language ranking deterministic#31
xaionaro wants to merge 1 commit into
abadojack:masterfrom
xaionaro-go:master

Conversation

@xaionaro

Copy link
Copy Markdown

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces sort.SliceStable with sort.Slice in detect.go when calculating language detection confidence. The sorting logic is updated to sort by distance first, and then alphabetically by language code in case of a tie, ensuring deterministic sorting. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant