When any such offence as is described in Section 175, 178, 179, 180, or 228 of the Indian Penal Code is committed in the view or presence of any Court, it shall be competent to such Court to cause the offender, whether he be a European British subject or not, to be detained in custody; and at any time before the rising of the Court on the same day to take cognizance of the offence; and to adjudge the offender to punishment by fine not exceeding two hundred Rupees, or by imprisonment in the Civil Jail for a period not exceeding one month unless such fine be sooner paid. In every such case the Court shall record the facts constituting the contempt, with any statement the offender may make, as well as the finding and sentence. If the Court, in any case, shall consider that a person accused of any offence above referred to should be imprisoned, or that a fine exceeding two hundred Rupees should be imposed upon him, such Court, after recording the facts constituting the contempt, and the statement of the accused person as before provided, shall forward the case to a Magistrate, or, if the accused person be a European British subject, to a Justice of the Peace, and shall cause bail to be taken for the appearance of such accused person before such Magistrate or Justice of the Peace, or if sufficient bail be not tendered shall cause the accused person to be forwarded under custody to such Magistrate or Justice of the Peace. If the case be forwarded to a Magistrate, such Magistrate shall, proceed to try the accused person in the manner provided for trials before a Magistrate, and it shall be competent to such Magistrate to adjudge such offender to punishment, as provided in the Section of the Indian Penal Code under which he is charged. If the case be forwarded to a Justice of the Peace, such Justice of the Peace shall enquire into the circumstances, and shall have the same powers of punishing the offender as are vested by the Statute 53 George III, c. 155, s. 105, in a Justice of the Peace for the punishment of an assault, and may deal with the offender in the same manner as is provided in that behalf in the said Statute. If such Justice of the Peace shall consider the offence to require a more severe punishment than a Justice of the Peace is competent to award under the said Statute, he may commit the offender to a Supreme Court of Judicature.