Extracted source code on sampling strategies (removed from the TypeChef repository)