Source code for ACM-ICPC and OI Templates are in folder /templates. You can use them in your projects freely but please report the bugs if you find any.