AQR has released an implementation of the well-known academic factors in its AQR Data Library: