In both panels, the male's the one on the right, and that sword-like appendage is the female's egg-laying organ.
Molemmissa ruuduissa  koiras on oikealla ja tuo miekantyylinen uloke on naaraan munanasetin.