A large intro course can generate hundreds of code similarity reports for a single weekly assignment. Clicking through them alphabetically, or in submission order, is how a TA loses a weekend. The fix is not a better plagiarism detector. It is a better sorting order.
The workflow below is a three-pass triage. Rank submissions by cohort outlier score rather than raw similarity percentage. Review only the top slice by risk. Then open side-by-side diffs only when the automated score is backed by a suspicious pattern. Done this way, a queue of 300 reports can come down to a short list of files worth opening before office hours.
A peer score is not a verdict. It is a sorting mechanism. The actual determination still happens in the diff viewer.
Prioritize by outlier score, not raw percentage
Raw match percentage is noisy. Two students who submit the same 20-line helper method can show a 100 percent match, but if both copied it from a lecture example, that is not misconduct. A student who renames every variable and reorders methods may reach only 38 percent while still copying the structure. Codequiry's code plagiarism checker for teachers addresses this with a cohort outlier score that weighs token, AST, and fingerprint similarity against the distribution of all the other submissions.
Suppose your course policy sets a review threshold of 40 percent peer similarity. Don't start at 40. Start at the top of the outlier queue:
- Open the assignment insights page and switch the sort order from "Highest similarity" to "Review first."
- Ignore flags below your threshold unless the outlier score is very high. For weekly labs, the outlier score is the stronger signal.
- Open the top 10 percent of the queue in the evidence review. For 300 submissions, that is 30 files.
- Tag each as Clear, Needs Review, or Escalate. Don't read line by line yet.
- Run the Python script below against the exported CSV to regroup flags by student, because a student who copied from two different classmates otherwise appears twice in the queue.

One setting is easy to miss. Check that web sources are included when the check is created, especially if you inherited a course template from someone else. Without them, the peer queue can look clean while Stack Overflow and GitHub copies never appear.
Export the report and regroup by student
The dashboard is good for a quick scan. The CSV export is better for repeatable triage. A short pandas script can collapse duplicate flags and rank students by the highest outlier signal across all their matches. Adjust the column names to match your export.
import pandas as pd
# Export from the assignment insights page as CSV.
# Expected columns: submission_id, author, peer_score, web_score,
# ai_score, matched_to, outlier_score
df = pd.read_csv("assignment_similarity_report.csv")
# Keep only pairs above the 40 percent peer threshold.
above_threshold = df[df["peer_score"] >= 0.40]
# Rank by outlier score first, then peer score.
ranked = above_threshold.sort_values(
["outlier_score", "peer_score"], ascending=[False, False]
)
# Group by author to catch students who match several peers.
grouped = ranked.groupby("author").agg(
flags=("matched_to", "count"),
max_peer=("peer_score", "max"),
max_outlier=("outlier_score", "max"),
).sort_values("max_outlier", ascending=False)
print(grouped.head(30).to_string())
The grouped table is where duplicate flags collapse. Say a student shows up as a 94 percent match to one classmate and a 61 percent match to another. The raw queue shows two rows; the script shows one student with two flags, which is a strong reason to move that student to Escalate.

Read the side-by-side diff only when the signals agree
The second pass is where most false positives fall away. For each file still in the queue, open the side-by-side diff and look for three signals, in order. A high outlier score alone is not enough. A high peer percentage alone is not enough.
- Token pattern: are the same unusual variable names, string literals, or error messages preserved across submissions?
- AST structure: are the method boundaries, loop nesting, and conditional branches identical even after renaming?
- Web source: does a match to Stack Overflow, GitHub, or a tutorial explain the overlap before peer copying is assumed?
Only when two of the three agree does the pair move forward. If the peer score is high but the token pattern looks like standard textbook code, mark it Clear. If the structure matches but the web match points to a tutorial both students cited, keep it in review at a lower severity.
A fixed 40 percent cutoff is arbitrary. For weekly labs, the distribution matters more. A student who sits two standard deviations above the class on structural overlap deserves a review even if the raw percentage is only 35.
Many courses still run MOSS on final projects because it is free and familiar to honor committees. For weekly labs, web-source checks and a labeled side-by-side diff save the most time, because the detect code plagiarism workflow has to produce evidence a professor can act on within a day, not a raw score that needs an hour of interpretation per file.
Handle small sections differently
Outlier scoring needs a distribution to work against. In a section of a dozen students there often isn't a meaningful one, so a pair at 78 percent peer similarity with no web matches should still get a manual look.
For sections under about 25 students, sort by peer score first and treat matches above roughly 65 percent as reviewable. Open the web-source panel on every flagged pair too, because in small classes a common false positive is two students independently finding the same Stack Overflow answer. The workflow changes, but the principle doesn't: use the automated score to reduce the number of files a person has to open, and use the diff to make the call.

A two-hour budget
Here is one way to fit the whole triage into a single block before office hours:
- 20 minutes: check the assignment settings, confirm web sources are on, and export the CSV.
- 30 minutes: run the script and sort the top 30 students into Clear, Needs Review, and Escalate.
- 60 minutes: the second pass, reading side-by-side diffs for everything tagged Needs Review or Escalate.
- 10 minutes: write up the few referrals that remain, with the specific token and structural evidence linked.
The output is not a perfect academic judgment. It is a defensible shortlist. Some weeks one heavily copied lab will dominate the queue and the second pass will take longer, and a new TA will occasionally forget a setting. A written checklist keeps those slips small.
Frequently Asked Questions
What is the fastest way to triage a large code similarity report?
Sort by cohort outlier score rather than raw similarity, review the top 10 to 15 percent of the queue, and open side-by-side diffs only when at least two signals agree.
Does a high peer similarity score always mean plagiarism?
No. Lecture starter code, standard library calls, and short helper methods can produce high matches without misconduct. Combine the outlier score, the side-by-side diff, and the web-source matches before deciding.
Can this workflow be automated?
Partly. Export the report as CSV and use a short Python script, like the one above, to rank students by outlier score and group duplicate flags. The final call still belongs to a person reading the diff.
For TAs and instructors who want the outlier queue and web-source matching without maintaining a MOSS setup, Codequiry's code plagiarism checker provides both in one report.