← every case · 1000 · comments

1290-block_comment_opening_on_the_64th_byte

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

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.ps1
1comments# ------------------------------------------------------------
2comments<# a comment over
3commentstwo lines #>
4codeWrite-Host 1

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1

cloc.default ✓ agrees

--strip-str-comments

the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 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.docstring-as-code ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 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.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

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.content ✓ agrees
the rules ask4 lines · 1 code · 2 comments · 1 extra
it answers4 lines · 1 code · 2 comments · 1 extra

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.region ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

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.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

scc --format json --no-config cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1

tokei.default ✓ agrees
the rules ask4 lines · 0 blanks · 1 code · 3 comments
it answers4 lines · 0 blanks · 1 code · 3 comments

tokei --output json cases/1000-comments/1290-block_comment_opening_on_the_64th_byte/input.ps1