← every case · 1000 · comments
the PowerShell block comment opener <# is two bytes, and here they are the 64th and 65th bytes of the file, either side of the boundary between its first two blocks of 64 bytes. A counter that reads a file in blocks of that size and settles the last byte of a block before reading the next one takes the < for code, misses the comment, and counts its two lines as code
| 1 | commentscommentscommentsextracommentscommentscomments | # ------------------------------------------------------------ |
| 2 | commentscommentscommentscommentscommentscommentscomments | <# a comment over |
| 3 | commentscommentscommentscommentscommentscommentscomments | two lines #> |
| 4 | codecodecodecodecodecodecode | Write-Host 1 |
stringcommentthe tag around another language
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1
--strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1 --strip-str-comments
cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1 --docstring-as-code
codestats cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1 --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1 --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1 --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1
tokei --output json cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1