sentences:  The law, which took effect on 5 December 2018 and became fully operational on 11 February 2019, following a number of further legal and administrative changes, allows same-sex and opposite-sex couples to enter into a union and receive some of the rights of marriage.In September 2004, Article 274 of the Sammarinese Penal Code was repealed.Under this article, homosexual contacts could be punished with imprisonment from 3 months up to one year, if they had been engaged in "habitually" and thereby caused "public scandal".