Cleanliness, Contentment, Austerity (Mental and physical discipline), Svadhyaya (Study of scriptures and chanting of Mantras) And Devotion to God are the Niyamas (Observance).
english translation
बाह्य एवं अंत:स्वच्छता, संतुष्टि, तप ,स्वाध्याय और ईश्वर-शरणागति - ये पाँच नियम हैं।
When these Abstinence and Observances are disturbed by negative thoughts then opposite [positive] thoughts should be cultivated.
english translation
यम- नियमों का पालन करते हुए साधक को जब विपरीत विचार सताने लगें । तो साधक को उन सभी विपरीत विचारों के विरुद्ध या प्रतिपक्षी विचारों का बारंबार चिन्तन करना चाहिए I
The obstacles to yoga - such as acts of violence and untruth - may be directly created or indirectly caused or approved whether caused by greed, anger or delusion, whether present in mild, medium or intense degree, result in endless pain and ignorance This is Pratipaksh Bhawana (the method of thinking the contrary).
english translation
यम और नियम के विरोधी हिंसा, असत्य व चोरी आदि विचार वितर्क कहलाते हैं । जो तीन प्रकार के होते हैं - 1)- स्वयं किए हुए 2) - दूसरों से करवाये हुए 3)- दूसरों द्वारा किए हुओं का समर्थन करने वाले । इनके कारण हैं - लोभ, क्रोध और मोह । इनमें भी कोई मृदु, मध्यम और बड़ा होता है ये सभी क्लेश और अज्ञान का अनन्त फल देनेवाले हैं । ऐसा विचार करना ही प्रतिपक्ष की भावना है ।