I'm having real trouble with this one. This is my working so far.
$$I = \int_{0}^{\pi}\tan{(\theta+ia)d\theta} = \frac{1}{2}\int_{0}^{2\pi}\frac{\sin{(\theta+ia)}}{\cos{(\theta+ia)}}d\theta \\ =\frac{1}{2}\int_{0}^{2\pi}\frac{\sin{(ia)}\cos\theta+\cos{(ia)}\sin\theta}{\cos{(ia)}\cos\theta - \sin{(ia)}\sin\theta}d\theta \\ =\frac{1}{2}\int_{0}^{2\pi}\frac{i\sinh{(a)}\frac{z+1 / z}{2}+\cosh{(a)}\frac{z-1 / z}{2i}}{\cosh{(a)}\frac{z+1 / z}{2} - i\sinh{(a)}\frac{z-1 / z}{2i}}\cdot \frac{1}{iz}dz\\ =\frac{1}{2}\int_{0}^{2\pi}\frac{z(i\sinh{(a)}(z^2+1)-i\cosh{(a)}(z^2-1))}{z(\cosh{(a)}(z^2+1) - \sinh{(a)}(z^2-1))}\cdot \frac{1}{iz}dz\\ =\frac{1}{2}\int_{0}^{2\pi}\frac{i(\sinh{(a)}(z^2+1)-\cosh{(a)}(z^2-1))}{\cosh{(a)}(z^2+1) - \sinh{(a)}(z^2-1)}\cdot \frac{1}{iz}dz$$
I'm not sure how to find the residue past this point. Any help is appreciated! Edit: Missing brackets in the title.