AI Code Detector Runs in your browser

AI CODE DETECTOR GUIDE

Can rearranging code lines change an AI code detector score?

Sometimes. In the current tool, most configured checks look for patterns on individual lines, but one rule looks for two comment lines next to each other. Moving a line between those comments can add or remove that match and change the heuristic score.

Code is analyzed in your browser; submitted code is not uploaded.

Why line order can matter

The analyzer checks each line for configured text and style patterns. Its repeated-adjacent-comments rule also compares each comment line with the line immediately before it. Two comments placed together can match that rule; placing a non-comment line between them breaks the adjacency.

That rule contributes its configured weight once when it matches, even if several adjacent pairs are present. Moving lines can also change the line numbers shown for matches, while a line's position alone does not change the other line-based patterns.

How to compare two arrangements

Keep the code text the same and compare the matched-rule list as well as the total score. If the score changes after a reorder, check whether the adjacent-comment rule appeared or disappeared; the report shows matched rules and their flagged lines.

A changed heuristic score describes configured patterns in the submitted text. It does not establish who wrote the code or whether an AI tool was used.