A judge may orally order a peace officer or private person to arrest anyone committing or attempting to commit a public offense in the presence of such judge.