java codes for different oversampling used in WEKA software.
if you downloaded WEka.rar
you can navigate to Weka\dist\Weka.jar and open the program
inside the filters, you can go to Filters,Supervised,Instances and you will see the Oversampled methods used