This code is dual licensed under one of the following: 0BSD GPL-2.0-only