Mode code samples into a single directory