If oversampling is performed before splitting into training and test set, there is leakage.