The residues shown are computed, not looked up: each is (1/2πi)∮f dz around a small circle enclosing the pole, evaluated numerically. The arc contribution is likewise integrated directly along the semicircle, so you can watch it die as R grows — which is the step every textbook waves through with "the arc vanishes as R→∞".