← every case · 1000 · comments

1195-closer_sharing_a_byte_with_an_opener_in_the_text

the comment ends on a path pattern, assets/*/, and C reads the /* inside a comment as text, so the */ that shares its asterisk closes the comment there. Rust nests its comments and reads the same bytes as one more level, which is case 1215. The file ends with a block comment of its own, so a comment that runs on past the pattern by mistake has a closer to reach

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1comments/* Copies every folder under assets/*/
2codeint copy_assets(void) { return 0; }
3blanks
4codeint main(void) { return copy_assets(); }
5comments/* Run once by the build. */

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 1 blanks · 2 code · 2 comments

cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c

cloc.default ✓ agrees

--strip-str-comments

the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 1 blanks · 2 code · 2 comments

cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --strip-str-comments

cloc.docstring-as-code ✓ agrees
the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 1 blanks · 2 code · 2 comments

cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --docstring-as-code

codestats.default ✓ agrees
the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 1 blanks · 2 code · 2 comments

codestats cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config

mezura.content ✓ agrees
the rules ask5 lines · 2 code · 2 comments · 1 extra
it answers5 lines · 2 code · 2 comments · 1 extra

mezura cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --output json --hide timing --no-default-config --no-local --counting content

mezura.region ✓ agrees
the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 1 blanks · 2 code · 2 comments

mezura cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c --output json --hide timing --no-default-config --no-local --counting region

scc.default ✓ agrees
the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 1 blanks · 2 code · 2 comments

scc --format json --no-config cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c

tokei.default ✗ fails

the */ of assets/*/ does not close the comment, which runs on to the */ of the last line, so the code and the blank line between count as comments. With a space or a letter between the / and the */ the file reads right

the rules ask5 lines · 1 blanks · 2 code · 2 comments
it answers5 lines · 0 blanks · 0 code · 5 comments

tokei --output json cases/1000-comments/1195-closer_sharing_a_byte_with_an_opener_in_the_text/input.c