Skip to content

fix: gopher duplicate-line char fraction denom#310

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/gopher-dup-line-char-denom
Open

fix: gopher duplicate-line char fraction denom#310
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/gopher-dup-line-char-denom

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Duplicate-line char fraction divided by word-char count (no spaces) while numerator uses len(line).
  • Could exceed 1; use document character_count (len(text)).

Test plan

  • Repeated lines with spaces yield fraction ≤ 1

Made with Cursor

Numerator counts line chars (incl. spaces); denom used word chars only and could exceed 1.

Co-authored-by: Cursor <cursoragent@cursor.com>
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