Learning Code Transformations from Repositories