The value of $\int _ { - \pi / 2 } ^ { \pi / 2 } \left( \frac { 1 + \sin ^ { 2 } x } { 1 + \pi ^ { \sin x } } \right) d x$ is