← every case · 5000 · line splices
a line holding real code ends in a spliced line comment, so the next two lines belong to that comment in C. The splice is written twice on purpose: a counter that joins a spliced line onto the one above and counts it as code gets a single splice right by accident, since the line above is code already and the line it took away is counted as a comment
| 1 | codecodecodecodecodecodecode | int a = 1; // comment \ |
| 2 | commentscommentscommentscommentscommentscommentscomments | continued \ |
| 3 | commentscommentscommentscommentscommentscommentscomments | joined to the comment |
| 4 | codecodecodecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
the comment takes its line break with it and stops there, so the first spliced line is joined to the code line above it and the second counts as code. A single splice comes out right by accident, since what it joins lands on a line that is code already
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c
--strip-str-comments
the comment takes its line break with it and stops there, so the first spliced line is joined to the code line above it and the second counts as code. A single splice comes out right by accident, since what it joins lands on a line that is code already
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --strip-str-comments
the comment takes its line break with it and stops there, so the first spliced line is joined to the code line above it and the second counts as code. A single splice comes out right by accident, since what it joins lands on a line that is code already
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --docstring-as-code
codestats cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c
the comment ends at the newline, so both lines joined to it are counted as code
tokei --output json cases/5000-line_splices/5060-code_then_a_spliced_line_comment/input.c