; and (2) by striking the second sentence and inserting the following: The burden shall be upon the petitioner to show that the Secretary’s denial of the application was not supported by facially legitimate and bona fide reasons. Except in a proceeding under section 340, notwithstanding any other provision of law (statutory or nonstatutory), including section 2241 of title 28, United States Code, or any other habeas corpus provision, and sections 1361 and 1651 of such title, no court shall have jurisdiction to determine, or to review a determination of the Secretary made at any time regarding, for purposes of an application for naturalization, whether an alien is a person of good moral character, whether the alien understands and is attached to the principles of the Constitution of the United States, or whether an alien is well disposed to the good order and happiness of the United States. . (g) Effective date The amendments made by this section shall take effect on the date of the enactment of this Act, shall apply to any act that occurred before, on, or after such date, and shall apply to any application for naturalization or any other case or matter under the immigration laws pending on, or filed after, such date. 204. Denaturalization for terrorists (a) In general Section 340 of the Immigration and Nationality Act is amended— (1) by redesignating subsections (f) through (h) as subsections (g) through (i), respectively