The judge of said state court shall have power to issue writs of habeas corpus, and to hear and dispose of the same in the same way and with the same power as the judge of the superior court.