Fixing Samplings/Filter Sample code generation functionality