; and (2) has provided assurances to the United States Government that it will not carry out activities or transactions for which sanctions may be imposed under subsection (b) or (c) in the future. (g) Effective date This section shall take effect on the date of the enactment of this Act and apply with respect to activities and transactions described in subparagraph (A) or (B) of subsection (a)(1) that are carried out on or after such date of enactment. 6. Exemptions relating to provision of humanitarian assistance (a) Sanctions with respect to foreign persons and agencies and instrumentalities of foreign states The following activities shall be exempt from sanctions under section 4: (1) The conduct or facilitation of a transaction for the sale of agricultural commodities, food, medicine, or medical devices to a foreign person described in section 4(a)(2). (2) The provision of humanitarian assistance to a foreign person described in section 4(a)(2), including engaging in a financial transaction relating to humanitarian assistance or for humanitarian purposes or transporting goods or services that are necessary to carry out operations relating to humanitarian assistance or humanitarian purposes. (b) Sanctions with respect to foreign governments The following activities shall be exempt from sanctions under section 5: (1) The conduct or facilitation of a transaction for the sale of agricultural commodities, food, medicine, or medical devices to Hamas, the Palestinian Islamic Jihad, or any affiliate or successor thereof described in section 5(a)(1). (2) The provision of humanitarian assistance to Hamas, the Palestinian Islamic Jihad, or any affiliate or successor thereof described in section 5(a)(1), including engaging in a financial transaction relating to humanitarian assistance or for humanitarian purposes or transporting goods or services that are necessary to carry out operations relating to humanitarian assistance or humanitarian purposes. 7. Report on activities of foreign countries to disrupt global