Every person who, in the presence of any court, makes an affray, or threatens to kill or beat another, or to commit any violence or outrage against the other’s person or property, or who, in the presence of the court, contends with hot and angry words, to the disturbance of the peace, may be ordered, without process or any other proof, to recognize for keeping the peace, and being of good behavior for a term not exceeding six months, and, in case of a refusal, may be committed as before directed.