← every case · 1000 · comments

1230-a_comment_word_at_the_head_of_a_longer_word

Batch opens a comment with the word REM, and REMOVE is a different word. A counter that looks for those three letters as a substring reads a command as a comment

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.bat
1commentsREM a comment
2codeREMOVE /Q file.txt
3codeecho done

stringcommentthe tag around another language

What each tool answered

cloc.default ✗ fails

a line whose first word begins with REM is taken as a comment whatever letters follow, so the command counts as one

the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

cloc --json cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

mezura cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 2 code · 1 comments

mezura cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat --output json --hide timing --counting region

scc.default ✗ fails

a line whose first word begins with REM is taken as a comment whatever letters follow, so the command counts as one

the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

scc --format json cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat

tokei.default ✗ fails

a line whose first word begins with REM is taken as a comment whatever letters follow, so the command counts as one

the rules ask3 lines · 0 blanks · 2 code · 1 comments
it answers3 lines · 0 blanks · 1 code · 2 comments

tokei --output json cases/1000-comments/1230-a_comment_word_at_the_head_of_a_longer_word/input.bat