The order-total function changed and moved
Its parameter and local names changed, and a tax calculation was added.
Worked Python example
Functions moved, variables changed, one helper was renamed, and tax calculation was added. AlignDiff keeps related blocks together so the edits that matter remain visible.
The refactor
A conventional source-order view can make movement look like deletion and insertion. AlignDiff first pairs related structures, then displays the detailed line changes inside those pairs.
Its parameter and local names changed, and a tax calculation was added.
calculate_total became compute_total while its body stayed aligned.
The new function remains one-sided instead of shifting unrelated code out of alignment.
Actual comparator output
This is a snapshot of the result produced by aligndiff.com for the worked example—not a hand-built before-and-after code layout.
calculate_order_total stays paired with its counterpart even after moving.
calculate_total and compute_total appear together as a renamed structure.
calculate_tax is shown as an inserted block without creating false pairings.
Private by design
AlignDiff parses, matches, and compares source locally. The comparison flow does not upload or execute the code you provide.
Paste two Python, JavaScript, or TypeScript files and inspect the structural pairs AlignDiff finds.
Open AlignDiff