Generalized codesamples [ci skip]