package Ġdev . git live . diff lib . examples Ċ Ċ import Ġdev . git live . diff lib . Diff Utils Ċ import Ġdev . git live . diff lib . Test Constants Ċ import Ġdev . git live . diff lib . algorithm . Diff Exception Ċ import Ġdev . git live . diff lib . patch . Abstract Delta Ċ import Ġdev . git live . diff lib . patch . Patch Ċ import Ġjava . io . File Ċ import Ġjava . io . IOException Ċ import Ġjava . nio . file . Files Ċ Ċ object ĠCompute Difference Ġ{ ĊĊĠĠĠ Ġprivate Ġval ĠOR IGIN AL Ġ= ĠTest Constants . MOCK _ FOLDER Ġ+ Ġ" original . txt " ĊĠĠĠ Ġprivate Ġval ĠR IV I SED Ġ= ĠTest Constants . MOCK _ FOLDER Ġ+ Ġ" rev ised . txt " ĊĊĠĠĠ Ġ@ Throws ( Diff Exception :: class , ĠIOException :: class ) ĊĠĠĠ Ġ@ Jvm Static ĊĠĠĠ Ġfun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġoriginal Ġ= ĠFiles . read All Lines ( File ( ORIGIN AL ). to Path ()) ĊĠĠĠĠĠĠĠ Ġval Ġrev ised Ġ= ĠFiles . read All Lines ( File ( RI VISED ). to Path ()) ĊĊĠĠĠĠĠĠĠ Ġ// ĠCompute Ġdiff . ĠGet Ġthe ĠPatch Ġobject . ĠPatch Ġis Ġthe Ġcontainer Ġfor Ġcomputed Ġdelt as . ĊĠĠĠĠĠĠĠ Ġval Ġpatch Ġ= ĠDiff Utils . diff ( original , Ġrev ised ) ĊĊĠĠĠĠĠĠĠ Ġfor Ġ( delta Ġin Ġpatch . delt as ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġprintln ( delta ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ