Complex sentence: Ahimsa for the Jains is a code of practice to always be kind and compassionate and prevent hurt to oneself and others.
Split into simpler sentences: Ahimsa for the Jains is a code of practice to engage in acts of kindness and compassion. It is a way to prevent hurt to self and others.