← every case · 1000 · comments

1010-code_then_comment_on_one_line

a line holding both code and a comment is code

read ascloc.defaultcloc.docstring-as-codecodestats.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1codeint x = 1; // a line that is both
2codeint y = 2;

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json --config /tmp/linejudge-empty-file cases/1000-comments/1010-code_then_comment_on_one_line/input.c

cloc.default ✓ agrees

--strip-str-comments

the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

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

cloc.docstring-as-code ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

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

codestats.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

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

mezura.content ✓ agrees
the rules ask2 lines · 2 code · 0 comments · 0 extra
it answers2 lines · 2 code · 0 comments · 0 extra

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

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

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

scc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

scc --format json --no-config cases/1000-comments/1010-code_then_comment_on_one_line/input.c

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

tokei --output json cases/1000-comments/1010-code_then_comment_on_one_line/input.c