NIntegrate[(e^(2 i t) (1 + cos(e^(i t))))/(-π^2 + 4 (e^(i t) + sin(e^(i t)))^2),{t,0,2π}]