This code snippets is for the Call To Action add-on, it will allow you to override the CTA rating results with an interactive version. This could improve conversion and lead to more ratings from your website visitors.
More Advanced View
Here is how it looks like in full view:
Click on image to enlarge
This filter allow you to customize the rating display results the way you like.