Distribution-Dependent Analysis of Gibbs-ERM Principle