; (B) in subparagraph (B), by striking the comma at the end and inserting a semicolon; (C) in subparagraph (C), by striking , or at the end and inserting a semicolon; (D) in subparagraph (D), by striking the comma at the end and inserting ; or ; and (E) by inserting after subparagraph (D) the following: (E) (i) is unlawfully present in the United States, as determined by the Secretary of Homeland Security; and (ii) is arrested for any offense described in subparagraphs (A) through (D), the conviction of which would render the alien inadmissible under section 212(a) or deportable under section 237(a), ; and (2) in paragraph (2)— (A) by striking The Attorney General and inserting the following: (A) In general Except as provided in subparagraph (C), the Secretary of Homeland Security ; (B) by striking Attorney General each place such term appears and inserting Secretary ; (C) by striking Code, that release and inserting the following: “Code, that— (i) release ; (D) by striking investigation, and the alien and inserting the following: “investigation; and (ii) the alien ; (E) by striking A decision relating to such release and inserting the following: (B) Decision procedure A decision relating to a release under subparagraph (A)