Nov 15, 2026 Codequiry software is now a one-time payment for life access. See plans →
James Okafor

James Okafor

Developer Advocate at Codequiry

James writes about code integrity for practicing engineers and helps teams wire Codequiry into their CI and review pipelines.

Articles by James Okafor

Building a Refactoring-Resistant Similarity Pipeline General 11 min
James Okafor James Okafor • 1 week ago

Building a Refactoring-Resistant Similarity Pipeline

Renaming variables and extracting helpers is the cheapest way to defeat a naive similarity checker, and the fix is not a better diff. This walks through the normalization stack that makes refactoring-resistant plagiarism detection work, from token streams to winnowing to tree edit distance, and is honest about the precision you pay for each step.

Setting Up Cross-Language Code Plagiarism Detection for CS2 General 16 min
James Okafor James Okafor • 1 week ago

Setting Up Cross-Language Code Plagiarism Detection for CS2

A student takes last year's Java solution and hands you Python. Same-language scanners see nothing, because the tokens barely overlap. Here is the normalization stack, the thresholds, and the review workflow we used to catch 61 translated pairs in a single term of 1,412 submissions.

Calibrating an AI Code Detector to Cut False Positives General 10 min
James Okafor James Okafor • 2 weeks ago

Calibrating an AI Code Detector to Cut False Positives

An AI code detector is a measurement instrument, and like any instrument it needs a baseline before you trust the number it prints. This walks through per-file scoring, empirical false positive rates on pre-2023 submissions, cohort normalization, and why the AI score should never travel alone.

How Code Similarity Detection Moved From Text to Trees General 17 min
James Okafor James Okafor • 3 weeks ago

How Code Similarity Detection Moved From Text to Trees

Five generations of code similarity detection have each been beaten by a student with a text editor. This is the technical history of how detectors moved from byte comparison to tokens, fingerprints, syntax trees and learned vectors, and what that arc tells you about choosing a tool that can still find a match when the code has been renamed, refactored, or generated by a model.

Token Fingerprinting vs AST Matching on 900 Refactored Submissions General 10 min
James Okafor James Okafor • 1 month ago

Token Fingerprinting vs AST Matching on 900 Refactored Submissions

Take 30 hand-written Java solutions, push them through five levels of mechanical refactoring, and you get a controlled ladder for asking a simple question: how much does each similarity engine actually see? The answers differ by nearly a factor of four, and the differences map cleanly onto how we should be designing assignments.

How Similarity Detection Learned to See Through Refactoring General 11 min
James Okafor James Okafor • 1 month ago

How Similarity Detection Learned to See Through Refactoring

Renaming variables and restructuring control flow used to be the cheat code for copying a classmate's submission. It hasn't been for years, and the techniques that closed that door are worth understanding before LLM rewrites move the goalposts again. A practical look at what each family of code similarity detection actually compares, and where all of them still fail.

Does Convergent AI Output Look Like Peer Plagiarism to a Detector? General 10 min
James Okafor James Okafor • 1 month ago

Does Convergent AI Output Look Like Peer Plagiarism to a Detector?

Twenty-three of 412 submissions in a data structures course shared a Dijkstra implementation that differed by fewer than three tokens, and the peer similarity engine flagged all 23 as a single cluster. Nobody had copied anybody. Here is the mechanism behind convergent AI output, the identifiers and AST evidence that separated it from real collusion, and the three-pass workflow we used to keep the scores from contaminating each other.

What Cross-Language Code Plagiarism Detection Can and Cannot See General 11 min
James Okafor James Okafor • 1 month ago

What Cross-Language Code Plagiarism Detection Can and Cannot See

Cross-language code plagiarism detection compares normalized structure rather than raw text, which works when a translation was mechanical and fails when the student rewrote the algorithm. Here is what survives a Java-to-Python translation, what the token and IR approaches actually see, and how to run the check across a whole cohort without drowning in false positives.

Scanning 9,301 Python Files for Stack Overflow Copy-Paste General 10 min
James Okafor James Okafor • 2 months ago

Scanning 9,301 Python Files for Stack Overflow Copy-Paste

A practical, code-level guide to batch-scanning Python files for web-sourced code. We walk through token normalization, fingerprinting, uploading to Codequiry, interpreting web match URLs, and stacking an AI check on flagged files. Built for CS professors auditing assignments and engineering managers verifying contractor code.

A TA's Method for Refactoring-Resistant Plagiarism Checks General 9 min
James Okafor James Okafor • 2 months ago

A TA's Method for Refactoring-Resistant Plagiarism Checks

Line diffs collapse when students rename variables, reorder functions, and extract methods. Here's how token fingerprints and AST normalization catch refactored copies, and how to triage hundreds of similarity reports without drowning in false positives.

Teaching Web Code Plagiarism Detection With Real Student Cases General 7 min
James Okafor James Okafor • 3 months ago

Teaching Web Code Plagiarism Detection With Real Student Cases

Web code plagiarism hides in plain sight when students copy from Stack Overflow, GitHub, or tutorials and rename a few variables. This post shows how to teach detection as a skill, design assignments that surface copied web code, and use a source-aware checker like Codequiry to see the evidence.

ChatGPT vs Copilot vs Gemini Code Detection Benchmarked General 8 min
James Okafor James Okafor • 3 months ago

ChatGPT vs Copilot vs Gemini Code Detection Benchmarked

A head-to-head evaluation of AI code detection across ChatGPT-4o, GitHub Copilot, Claude 3.5 Sonnet, and Gemini 1.5 Pro. One pattern kept surfacing: text-only detectors miss refactored LLM code, while structural and multi-signal checks hold up.