To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I'm sorry I thought I answered this already, but I forgot. Sorry about that. The sampler source code is not available anywhere. Unfortunate that the sample there references code that is not available in the sample snippet.