The official text
Old and new, side by side
Code of Criminal Procedure, 1973
Section 478 Power to alter functions allocated to Executive Magistrate in certain cases
If the Legislative Assembly of a State by a resolution so permits, the State Government may, after consultation with the High Court, by notification, direct that references in sections 108, 109, 110, 145 and 147 to an Executive Magistrate shall be construed as references to a Judicial Magistrate of the first class.
Bharatiya Nagarik Suraksha Sanhita, 2023
Section 524 Power to alter functions allocated to Executive Magistrate in certain cases
If the Legislative Assembly of a State by a resolution so permits, the State Government may, after consultation with the High Court, by notification, direct that references in sections 127, 128, 129, 164 and 166 to an Executive Magistrate shall be construed as references to a Judicial Magistrate of the first class.
The texts are India Code’s. The amendment markers and footnotes of the official print are left out, so the old section reads as it stood when it was repealed; State amendments are not shown. The PDFs linked below carry the full history.