MOSS (Measure of Software Similarity) is a tool used in Computer Science classes to detect plagiarism in programming assignments by comparing the structural similarity of code[1][2]. It works with various programming languages and produces a report showing pairs of programs with significant similarity[3][1][4].
While MOSS provides a similarity percentage, there is no single, universally agreed-upon score that automatically flags a student for cheating[3][1]. The similarity score is a useful indicator, but it's up to the instructor to review the flagged code and make a judgment call based on the specific context of the assignment and course policies[5][3].
However, some sources suggest potential baselines or thresholds used in practice:
- A similarity score of 50% or more could raise flags, although this depends on the specific assignment and the professor's tolerance[5].
- One source mentions a cheating cutoff around 25% and below, but immediately follows this by stating that upon viewing a report with 96% similarity, it would be obvious to the TA/Professor that cheating occurred[6]. This suggests that while very low scores might be considered acceptable, significantly higher scores are highly suspicious.
- In one study evaluating MOSS for detecting ChatGPT-generated code, the authors used a threshold of 20% based on their experience integrating MOSS into their CS classrooms[7].
- HackerRank, which uses MOSS for plagiarism detection, categorizes flags based on percentage: Low (< 80%), Medium (80%-90%), and High (≥ 90%)[8].
It's important to understand that MOSS flags similarity, not intent to cheat[3]. Instructors look for patterns beyond just identical code, such as similar variable names (if not required by the assignment), logical structure, or even shared typos[5][9][4]. Factors like shared template code provided by the instructor are typically accounted for by MOSS[3][9]. A high similarity score, especially between a small number of students, is generally considered a strong indicator of potential plagiarism[10][2].