Optimization: getRepositoriesList was called inside foreach loop!